Skip to main content

This package include modules for findng links in a webpage and its children.

In the main module find_links_by_extension links are found using two sub-modules and then added together:

  1. Using Google Search Results (get_links_using_Google_search)

Since we can specify which types of files we are looking for when we search in Google, this methos scrapes these results. But this method is not complete:

  1. Google search works based on crawlers, and sometimes they don’t index properly. For example [this][1] webpage has three pdf files at the moment (Aug 7 2018), but when we [use google search][2] to find them it finds only two although the files were uploaded 4 years ago.

  2. It doesn’t work with some websites. For example [this][3] webpage has three pdf files but google [cannot find any][4].

  3. If many requests are sent in a short period of time, Google blocks access and asks for CAPTCHA solving.

  1. Using a direct method of finding all urls in the given page and following those links if they are refering to children pages and seach recursively (get_links_directly)

While this method does not miss any files in pages that it gets to (in contrast to method 1 which sometimes do), it may not find all the files because:

  1. Some webpages in the domain may be isolated i.e. there is no link to them in the parent pages. For these cases method 1 above works.

  2. In rare cases the link to a file of type xyz may not have .xyz in the link ([example][5]). In these cases method 2 cannot detect the file (because it only relies on the extesion appearing in the links), but method 1 detects correctly in these cases.

So the two methods complete each other’s gaps.

[1]: http://www.midi.gouv.qc.ca/publications/en/planification/ [2]: https://www.google.com/search?q=site%3Ahttp%3A%2F%2Fwww.midi.gouv.qc.ca%2Fpublications%2Fen%2Fplanification%2F+filetype%3Apdf [3]: http://www.sfu.ca/~vvaezian/Summary/ [4]: https://www.google.com/search?q=site%3Ahttp%3A%2F%2Fwww.sfu.ca%2F~vvaezian%2FSummary%2F+filetype%3Apdf [5]: http://www.sfu.ca/~robson/Random

Metadata

Release files for web-scraper 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for web-scraper 1.0
File Size Uploaded Provenance Actions
web_scraper-1.0.tar.gz 5.7 kB Without provenance Details for web_scraper-1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for web-scraper 1.0
File Interpreter ABI Platform Actions
web_scraper-1.0-py2-none-any.whl Python 2 none any Details for web_scraper-1.0-py2-none-any.whl

Total release size: 16.5 kB

Release files / web_scraper-1.0.tar.gz

Download URL web_scraper-1.0.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ddb620311ebd618b3cee8ed6b08bf30f3813d710f9fef333852637152c00f702
BLAKE2b-256 checksum
How to use checksums
b445116acaa0e9242103e5c23cea4f368a5516d96386795994f9187b92015727
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.13

Release files / web_scraper-1.0-py2-none-any.whl

Download URL web_scraper-1.0-py2-none-any.whl
Size 10.8 kB
Tags Python 2
SHA-256 checksum
How to use checksums
35f6600243771447ee726165cb8fd832ac4436b57ce7027fcf25cbb43da96686
BLAKE2b-256 checksum
How to use checksums
2601e3d461199c9341b7d39061c14b1af914654d00769241503a87f77505f95f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.13

Security for web-scraper 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.

Release history Release notifications | RSS feed

This release

1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page