URL Scrub
Tool for parsing URL webpage into JSON + RDF.
Setup
Dependencies
- Python:
3.10 geckodriverorchromedriver
Installation Process
-
Install
urlscrubwithpippython3.10 -m pip install urlscrub
-
Install
geckodriver-
Download Firefox and install.
-
Linux (Ubuntu):
sudo apt-get install firefox
-
-
Unzip
geckodriver/geckodriver.exefile into a preferred directory. -
Append the directory containing
geckodriverto yourPATHvariable. (Guide)
-
-
Install
chromedriver-
Download Google Chrome and install.
-
Find the version of Google Chrome you have installed.
-
Download
chromedriver.zipwith the most corresponding version number.- Exact version number not required (Ex: chromedriver
102.0.5005.61w/ Google Chrome102.0.5005.115)
- Exact version number not required (Ex: chromedriver
-
Unzip
chromedriver/chromedriver.exefile into a preferred directory. -
Append the directory containing
chromedriverto yourPATHvariable. (Guide)
-
Command Line Usage
-
Command:
urlscrub --skip-cookies --driver "chrome" -l "https://www.amazon.com/All-new-Kindle-Oasis-now-with-adjustable-warm-light/dp/B07GRSK3HC"
-
Response:
{ "results": [ { "type": "product", "productTitle": "Kindle Oasis \u2013 With adjustable warm light", "availability": "In Stock.", "rating": "19,734 ratings", "imageURL": "https://m.media-amazon.com/images/I/614TlIaYBvL._AC_SX679_.jpg" } ] }
Guides
-
Appending directories to your
PATHenvironment variable.- Windows Guide
- Linux:
-
Append path to your
.bashrc/.zshrcexport PATH="<geckodriver_dir>/:$PATH"
-
Metadata
Release files for urlscrub 0.1.0
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 | |
|---|---|---|---|---|
| urlscrub-0.1.0.tar.gz | 8.5 kB | Without provenance | Details |
Release files / urlscrub-0.1.0.tar.gz
| Download URL | urlscrub-0.1.0.tar.gz |
|---|---|
| Size | 8.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eb273932060d70d725fedbd916d55bae66ae5685741ba1911f4b44aab0f1c61a
|
|
BLAKE2b-256 checksum How to use checksums |
a211f662281213d63de4926d03877a45ecda2813ff14e7e6df57b2723211bbf2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.4
|
Security for urlscrub 0.1.0
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.