Skip to main content

Search in Google & Rambler. Explore VK, Telegram, Instagram, YouTube, Twitter

Project description

Search Me

Search Me

Search in: Google, Rambler. Extract data from: VK, Telegram, Instagram, YouTube, Twitter

Version License Python Status Downloads

PRE-INSTALLING

  • If you want to generate PDF documents (param pdf_report), setup wkhtmltopdf
  • If you want to download video from youtube (param socials), setup youtube-dl

INSTALLING

pip install search-me

USAGE

Imports

from search_me import Google, Rambler

Init search engine

searcher = Google()
searcher = Rambler()

Parameters:

  • results: Number of search results on page (default: 10)
  • retry: Number of retries for one query (default: 10)
  • socials: Tuple with names of social nets (default: ("vk", "instagram", "telegram", "twitter", "youtube"))
  • pdf_report: Export searched data to pdf-documents (default: False)
  • pdf_timeout: Waiting time in seconds for create pdf-document (default: 30)
  • cache: Caching searched data after each search query in pkl file (default: True)
  • sleep_min: Minimum time in seconds to sleep after each query (default: 0.0)
  • sleep_max: Maximum time in seconds to sleep after each query (default: 1.5)

Start search

searched = searcher.search(items=["query 1", "query 2"])

Look results in table

searcher.show(results=searched)

Apply social processing

searched_social = searcher.use_social(searched=searched)

Parameters:

  • posts_limit: Number of posts for VK, Telegram, Twitter, Youtube (default: 10)
  • export_data: Export data about posts in file (default: True)
  • export_format: Export file format (csv, xls, html, json) (default: csv)
  • download_media: Download media from Instagram, Youtube (default: True)

EXAMPLE USAGE

import logging
log = logging.getLogger().setLevel(logging.DEBUG)

from search_me import Google, Rambler
g = Google(retry=3, pdf_report=True, pdf_timeout=10, cache=True, socials=("vk", "telegram", "twitter", "youtube"))
searched = g.search(items=["社會信用體系", "0x0007ee", "журнал медуза"]) 
g.show(results=searched)
searched_social = g.use_social(searched=searched)

LINKS

SUPPORT

PayPal

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

search-me-1.0.tar.gz (8.1 kB view hashes)

Uploaded Source

Built Distribution

search_me-1.0-py3-none-any.whl (8.0 kB view hashes)

Uploaded Python 3

Supported by

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