A Python library for SERP and web scraping with multiple provider integration
Project description
surfhub
A python library for surfing and crawling website.
This library provides two basic components for you to run google search and getting result
- Seprer is a API to provide structured data from Google search. There are many serper providers such as ValueSerp, Serper, etc
- Scraper is an API to extract HTML from website. You can run it on your own laptop, but it is better to use providers such as Zyte, or Browserless
To start, you can visit Serper to get a free account.
import surfhub import get_serper
s = get_serper("serper", api_key="yourkey")
print(s.serp("hello world").items)
Supported SERP provider:
Example to use scraper
from surfhub import get_scraper
s = serp.get_scraper("browserless", api_key="yourkey")
s.scrape("https://webscraper.io/test-sites/e-commerce/allinone")
Supported Scraper provider
- Local (run on your laptop) with proxy support
- Browserless
- Zyte
- Crawlbase
TODO
- Support ScrappingBee
- Support SerpAPI
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file surfhub-0.0.4.tar.gz.
File metadata
- Download URL: surfhub-0.0.4.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5161889a8f8c0dc527c7e01f5a4fa17a40256fdcf5725e30162b2fce77fdd04
|
|
| MD5 |
97e6e47c4017040b47cfe332dd5188c9
|
|
| BLAKE2b-256 |
d4e53252e242e146cbe21e647f28ac72f2fc16f430b4f8a4e503489f43fad48a
|
File details
Details for the file surfhub-0.0.4-py3-none-any.whl.
File metadata
- Download URL: surfhub-0.0.4-py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f521fcd24f727b3e0db3ca472f365fc0d009d523b987b48efb7edfb7a52fc60c
|
|
| MD5 |
a4f8a8040e5061b74a1cda74efc605f1
|
|
| BLAKE2b-256 |
5961abbf59224983184c7d560e62c3fa896c1f06e5872378943a00701a009fcf
|