GitHub - elliotgao2/htmlfetcher: No pain HTML fetching library.

2 min read Original article ↗

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Repository files navigation

HTML Parsing

No pain HTML fetching library.

A light wrapper of selenium.

For page with a lot of ajax.

Installation

pip install htmlfetcher

download browser: https://github.com/mozilla/geckodriver/releases

Usage

from htmlfetcher import HTMLFetcher

fetcher = HTMLFetcher(browser='/home/bug/桌面/geckodriver')
text = fetcher.get('http://zhaopin.baidu.com/quanzhi?tid=4139&ie=utf8&oe=utf8&query=python&city_sug=%E6%88%90%E9%83%BD')
fetcher.close()

print(text)

About

No pain HTML fetching library.

Topics

Resources

Readme

Activity

Stars

2 stars

Watchers

2 watching

Forks

2 forks

Releases

No releases published

Languages