/Batch_Check_PyPI_Relative_Paths

This Python script checks the relative and absolute paths from projects on the PyPI search results pages for Python3 projects.

Primary LanguagePythonThe UnlicenseUnlicense

Batch_Check_PyPI_Relative_Paths

Inspired by PyPI_Relative_Path_Check

This Python script checks the relative and absolute paths from projects on the PyPI search results pages for Python3 projects. It fetches a specified number of pages and checks all paths in the project descriptions.

How it works

The script uses the requests and BeautifulSoup libraries to fetch and parse the HTML content of the pages. It then finds all paths in the project descriptions and checks if they are valid. If a path is not valid, it prints a message with the URL of the bad link.

Example

Demo

Download

You can download the script using git

git clone https://github.com/KPCOFGS/Batch_Check_PyPI_Relative_Paths.git
cd Batch_Check_PyPI_Relative_Paths

You can install the dependencies using pip:

pip install -r requirements.txt

Usage

You can run the script from the command line with the --pages argument to specify the number of pages to check:

python script.py --pages PAGE_NUMBER

Optional paramter --starting-page will determine which page you start, default to 1, cannot go below this value:

python script.py --pages PAGE_NUMBER --starting-page STARTING_PAGE_NUMBER

LICENSE

This repository is licensed under the Unlicense