Skip to main content

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" --headless --proxy "user:pass@host:port"

License

This project is licensed under the MIT License.

Metadata

Release files for pyselsearch 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyselsearch 0.2.2
File Size Uploaded
pyselsearch-0.2.2.tar.gz 7.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyselsearch 0.2.2
File Interpreter ABI Platform
pyselsearch-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 15.2 kB

Release files / pyselsearch-0.2.2.tar.gz

Download URL pyselsearch-0.2.2.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d8df1f6c85aea93c47d2fe8aa2d0f366873f42a1a099cd2fe6505c5f86329e65
BLAKE2b-256 checksum
How to use checksums
aff3f4b718944e33dd95ed9b8698bd845e7bd71bdeca2276c781f8d7242eda87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / pyselsearch-0.2.2-py3-none-any.whl

Download URL pyselsearch-0.2.2-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
91f6cdc13657d15c61c8fd96d4fdc480a22c1e53cdad53f85661809374654b05
BLAKE2b-256 checksum
How to use checksums
c44b33d0e5c8c6bc88206387ea42039865218b0dcd280f1670fb3ac0b014dd43
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

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