U.S.News-Scrapper
U.S.News Scrapper is a Python library that collect data from the website of usnews and output those data in a file for offline usage. Till now, it is only capable of collecting graduate schools data and output it in .xls format. After generating the .xls file, it will be opened by default excel file opener. Visit github_ page for detailed informations.
Setup
Visit github_ page for detailed informations.
$ pip install usnews_scrapper
Usage
usage: python usnews_scrapper.py [-h] -u URL [-o OUTPUTFILENAME] [-p PAUSETIME] [–from STARTPAGE] [–to ENDPAGE]
Collects data from usnews and generates excel file
optional arguments: -h, –help Show this help message and exit -u URL, –url URL The usnews address to collect data from. Put the URL within qoutes i.e. “ or ‘ . -o OUTPUTFILENAME The output file name without extension. -p PAUSETIME, –pause PAUSETIME The pause time between loading pages from usnews. –from STARTPAGE The page number from which the scrapper starts working. –to ENDPAGE The page number to which the scrapper works.
Examples
Copy the address of the page from usnews website and in the Command Prompt and enter this command -
$ cd USNews-Scrapper$ python usnews_scrapper.py –url=”https://www.usnews.com/best-graduate-schools/top-science-schools/computer-science-rankings” -o file_name -p 2 –from=2 –to=5
The output file will be saved in current directory under the name of file_name_*.xls
Metadata
Release files for usnews-scrapper v0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| usnews_scrapper-v0.1.tar.gz | 5.9 kB | Without provenance | Details for usnews_scrapper-v0.1.tar.gz |
Release files / usnews_scrapper-v0.1.tar.gz
| Download URL | usnews_scrapper-v0.1.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
61d9a1ec00ca65a1302ecda5ae5e567fedd0a46f2de60e6ab1640ce8c519fb10
|
|
BLAKE2b-256 checksum How to use checksums |
c388cc60a244d2d047bcc1532275f8e244f59e59dca237737f01bb6d0396ce01
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.2
|
Security for usnews-scrapper v0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.