Skip to main content

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

License

This project is licensed under the MIT License.

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

pyselsearch-0.2.2.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyselsearch-0.2.2-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file pyselsearch-0.2.2.tar.gz.

File metadata

  • Download URL: pyselsearch-0.2.2.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for pyselsearch-0.2.2.tar.gz
Algorithm Hash digest
SHA256 d8df1f6c85aea93c47d2fe8aa2d0f366873f42a1a099cd2fe6505c5f86329e65
MD5 e10ad511b4bf883406d23c2b39745e99
BLAKE2b-256 aff3f4b718944e33dd95ed9b8698bd845e7bd71bdeca2276c781f8d7242eda87

See more details on using hashes here.

File details

Details for the file pyselsearch-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: pyselsearch-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for pyselsearch-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 91f6cdc13657d15c61c8fd96d4fdc480a22c1e53cdad53f85661809374654b05
MD5 dfde0ff8825bd747c94439f30e5323c7
BLAKE2b-256 c44b33d0e5c8c6bc88206387ea42039865218b0dcd280f1670fb3ac0b014dd43

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page