Skip to content
This repository has been archived by the owner on May 18, 2024. It is now read-only.

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

License

Notifications You must be signed in to change notification settings

KPCOFGS/Batch_Check_PyPI_Relative_Paths

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Batch_Check_PyPI_Relative_Paths

Inspired by PyPI_Relative_Path_Check

This Python script checks the relative paths from projects on the PyPI search results pages for Python3 projects. It fetches a specified number of pages and checks all the relative 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 the relative paths in the project descriptions and checks if they are valid. If a relative 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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Languages