Git Product home page Git Product logo

scan_for_missing_media_links's Introduction

Media Link Checker with Customizable Parameters

Overview

This Python script scans articles on a website to identify missing media links. It's designed for flexibility, allowing users to customize key parameters through command-line arguments.

Prerequisites

  • Python 3.x

  • Required Python packages: aiohttp, beautifulsoup4

    Install the necessary packages with:

    pip3 install aiohttp beautifulsoup4

Usage

  1. Clone this repository:

    git clone https://github.com/docvinum/wp-check-media/
    cd wp-check-media
  2. Run the script with default settings:

    python3 check_media.py
  3. Run the script with custom settings:

    python3 check_media.py --base-url [YOUR_BASE_URL] --start [STARTING_ARTICLE_NUMBER] --end [ENDING_ARTICLE_NUMBER] --output-file [OUTPUT_FILENAME] --id-url [TARGET_URL_ID]

Command-Line Arguments

  • --base-url: Specifies the base URL of the articles. (Default: https://ives-openscience.eu/)
  • --start: Designates the starting article number. (Default: 1)
  • --end: Defines the ending article number. (Default: 40197)
  • --output-file: Names the output CSV file. (Default: missing_media.csv)
  • --id-url: Provides the ID of the target URL to check within each article. (Default: target-pdf-id)

Features

  • Scans a designated range of articles to identify missing media links.
  • Supports customization of key parameters through command-line arguments.
  • Uses multiprocessing and asynchronous programming to enhance performance.

Contributing

Contributions via pull requests are welcome. For major changes, please open an issue first to discuss the desired changes.

License

Released under the MIT License.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.