Skip to main content

API to integrate Ubersuggest with Python

Project description

pyusuggest

Introduction

This package implements a simple class to integrate with amazing Ubersuggest tool. But what is the Ubersuggest tool anyway? It's a powerfull engine that can give statistics about keywords choosed by the user, taking as params the locale. Unfortanelly, this tool doesn't have a native API, so I decide to contribute. Home made.

Index

Installation

pip install pyusuggest

Dependencies

  • requests
  • pytest

API

Instancing the Ubersuggest

from pyusuggest import Ubersuggest
keyword = 'algorithm'
ubersuggest = Ubersuggest(keyword)

Request data from Uberssugest

ubersuggest.look_up()

Params

For instancing Ubersuggest:

  • keyword

    • Keyword or prase that will be used in the query of Ubersuggest tool.
  • locale

    • The region that will be used in the query. Must follow the padron en-us. Default locale is en-us.

For use look_up method:

  • results

    • Quantity of results that will be returned by the query. The default number is 50.

Get monthly statistics

You can get monthly statistics for the keyword searched and the related searches. The monthly statics show how many times that keyword was searched for each month.

ubersuggest.set_keyword('databases')
ubersuggest.look_up()
ubersuggest.get_monthly_statistics()

Params

For use the get_monthly_statistics method:

  • period: number of months that the user wants to track. If no period is passed as argument, every month will be returned.

Download results as CSV

You can also download the results from each keyword in CSV format. It will write a CSV file in the current working directory with the Search Volume, CPC and Competition info.

ubersuggest.set_keyword('java')
ubersuggest.look_up()
ubersuggest.download_results_as_csv()

Params

For use the get_monthly_statistics method:

  • No params are required for this method.

Documentation

Other methods and option params can be checked at documentation.

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

pyusuggest-1.0.4.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

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

pyusuggest-1.0.4-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file pyusuggest-1.0.4.tar.gz.

File metadata

  • Download URL: pyusuggest-1.0.4.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for pyusuggest-1.0.4.tar.gz
Algorithm Hash digest
SHA256 c547b2a94728983ea9e6294b6f9febd699f8005c87e149b87255f80f8cfdffe2
MD5 4aefe2a842058de6fca323918275f7a4
BLAKE2b-256 e90a8e0c97084c958b2e576fb66dc28f572988a2b4563ae8196aa95b58592525

See more details on using hashes here.

File details

Details for the file pyusuggest-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: pyusuggest-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for pyusuggest-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 11df1951bbf52ff0880047f2ea5c45f1d8f9b11861e2d9273b41345d3580989e
MD5 06760509af4caf70ab16d4effcd89aca
BLAKE2b-256 5b1160165a17e5f0594ec248e26c4cee17ea3c281071322ffd21fc0d4837ad00

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