Just another side project, to help my personal issue of google searching
Project description
pyselsearch
Get Google Search results using browser as requests sometimes sucks. It includes support for proxy authentication, headless browsing, and customizable search result parsing.
Features
- Headless and non-headless scraping
- Authenticated proxy support (
username:password@host:port) - Dynamic Chrome extension creation for proxy auth
- Undetected ChromeDriver (via SeleniumBase)
- CLI tool for quick usage
Installation
Clone the repository and install in editable mode:
pip install pyselsearch
Usage
Python
from pyselsearch.core import GoogleSearch
scrape = GoogleSearch(proxy="username:password@host:port")
results =scrape.search("OpenAI ChatGPT")
for result in results:
print(result["title"], result["url"])
Command Line
pyselsearch "search query"
Additional options:
pyselsearch "search query" --no-headless --proxy "user:pass@host:port"
License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
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 pyselsearch-0.2.1.tar.gz.
File metadata
- Download URL: pyselsearch-0.2.1.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e600b889e7e72c30b761e14330524ba2aedc00dce8ad47261099a8a17401f2f0
|
|
| MD5 |
93ea877a388e3d30d2754483618f38e0
|
|
| BLAKE2b-256 |
adb1a000dc2c9746e3a2dece8d8a7a6d909aea533b4e52612ab4fba138a8b7d1
|
File details
Details for the file pyselsearch-0.2.1-py3-none-any.whl.
File metadata
- Download URL: pyselsearch-0.2.1-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68a90d789f5064f31ffcb11fac0f1497011ca9bc35f2f63d79abe2a183acefcc
|
|
| MD5 |
a1fbe4a634f9e44ece4aba6d6e79d9a4
|
|
| BLAKE2b-256 |
65fda9b0011750ad78fa8ecb189dfc93cb786aecb10ee99d48586eb92be2d3ea
|