Skip to main content

A package for scraping search results from Yahoo Search.

Project description

SocialCrawler

SocialCrawler is a Python package designed to scrape search results from Yahoo Search for specific domains. It utilizes requests and BeautifulSoup to extract search results from Yahoo Search pages.

Installation

You can install SocialCrawler via pip:

pip install socialCrawler

Usage

from socialCrawler import search

# Define your search query
query = "python tutorials"

# Define the list of domains to search within
domains = ["stackoverflow", "instagram"]

# Define the number of search results to retrieve per domain
num_results = 5

# Perform the search
results = search(query, domains, num_results)

# Print the search results
for result in results:
    print(result)

Functions

search(query, domains, num_results=1, proxies=None)

Search for the specified query in the specified domains and retrieve search results.

  • query (str): The search query.
  • domains (list): List of domains to search within.
  • num_results (int): Number of search results to retrieve per domain. Default is 1.
  • proxies (list): List of dictionaries containing proxy information. Default is None.

Returns:

  • list: A list of dictionaries containing search results.

scrape(url, proxy, domain)

Scrape search results from the specified URL for a given domain.

  • url (str): The URL to scrape.
  • proxy (dict): Dictionary containing proxy information.
  • domain (str): The domain for which to scrape search results.

Returns:

  • list: A list of dictionaries containing scraped search results.

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

yahooproject-0.1.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

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

YahooProject-0.1-py3-none-any.whl (2.0 kB view details)

Uploaded Python 3

File details

Details for the file yahooproject-0.1.tar.gz.

File metadata

  • Download URL: yahooproject-0.1.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for yahooproject-0.1.tar.gz
Algorithm Hash digest
SHA256 54757d63cf9cfc70b07d3fa95a70c59ba07592a9ff00401c2b68c627efd55cad
MD5 6e551614999b90b9f2354a3a87f55410
BLAKE2b-256 6755bdcb00c4b43b5a1571493ac5d7c438345e3179bdaa0d7228268d9409b6f3

See more details on using hashes here.

File details

Details for the file YahooProject-0.1-py3-none-any.whl.

File metadata

  • Download URL: YahooProject-0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for YahooProject-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e710ad8add11eb4c8d283a99d6a93e892f56831bea9d9cb5a322cc0fa02b974b
MD5 c49249e304c452d0fe0d9b34f2f358aa
BLAKE2b-256 594442e6cdc2827e5c325b4119dd7df6a41ec1ad528af8b958cc1933e1d2181a

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