PageFLow
PageFlow is a Python (2 and 3) library for webpage search result crawler. It provides a simple API and support Google, Baidu, Bing search engines. [https://pypi.org/project/pageflow/]
Features
- support pages argument instead of just the first pate result.
- support redirect pages information extraction.
Installation
1. using pip
pip install pageflow
2. using setup.py
git clone https://github.com/Lapis-Hong/PageFlow.git
cd PageFlow
pip setup.py install
Usage
from pageflow import PageFlow
query = "python"
pages = 1 # search results total pages
pf = PageFlow("baidu", proxies=None)
# Get search page html.
html = pf.get_html(query=query, pages=pages)
# The following results are all generator of SearchResult obj.
# Get search result urls.
url = pf.get_url(query=query, pages=pages)
# Get search result titles.
title = pf.get_title(query=query, pages=pages)
# Get search result abstract.
abstract = pf.get_abstract(query=query, pages=pages)
# Get search result redirect html.
redirect_html = pf.get_redirect_html(query=query, pages=pages)
# Get search result redirect content.
redirect_content = pf.get_redirect_content(query=query, pages=pages)
# Get search result title, abstract and url.
result = pf.get(query=query, pages=pages)
# Get search result title, abstract, url, redirect html and redirect content.
result_all = pf.get_all(query=query, pages=pages)
References
https://github.com/howie6879/magic_google https://github.com/meibenjin/GoogleSearchCrawler https://github.com/chrislinan/cx-extractor-python
Metadata
Release files for pageflow 0.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 |
|---|---|---|---|---|
| pageflow-0.1.tar.gz | 10.0 kB | Without provenance | Details for pageflow-0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pageflow-0.1-py2-none-any.whl | Python 2 | none | any | Details for pageflow-0.1-py2-none-any.whl |
Total release size: 22.8 kB
Release files / pageflow-0.1.tar.gz
| Download URL | pageflow-0.1.tar.gz |
|---|---|
| Size | 10.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
123ccdeebd28889fe1688c4fb4db30176f920167295cf657044305299d1bec5a
|
|
BLAKE2b-256 checksum How to use checksums |
afb816726119ea0ffb9659352c493b3d94eaf99a91915c85e201bfd18f3fd1e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.4.2 requests/2.18.3 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.19.4 CPython/2.7.10
|
Release files / pageflow-0.1-py2-none-any.whl
| Download URL | pageflow-0.1-py2-none-any.whl |
|---|---|
| Size | 12.8 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
4f4740a07f8b4d24f70605d6adf4300332609da8603d1caa1a36e4bdd685dd1c
|
|
BLAKE2b-256 checksum How to use checksums |
5d42609573cf360730c1224375b6afb59356994738dd0d294669bf094a919065
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.4.2 requests/2.18.3 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.19.4 CPython/2.7.10
|
Security for pageflow 0.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.