Skip to main content

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

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)

Source distribution for pageflow 0.1
File Size Uploaded
pageflow-0.1.tar.gz 10.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pageflow 0.1
File Interpreter ABI Platform
pageflow-0.1-py2-none-any.whl Python 2 none any Details

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

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files

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