Python bindings for Alexa Web Information Service (AWIS) API

Overview

Attention!

This package is no longer maintained. See this ticket for more info.


Wraps Alexa Web Information Service.

Usage

Making UrlInfo requests:

api = AwisApi(ACCESS_ID, SECRET_ACCESS_KEY)
tree = api.url_info("www.domain.com", "Rank", "LinksInCount")
elem = tree.find("//{%s}StatusCode" % api.NS_PREFIXES["alexa"])
assert elem.text == "Success"

Batch UrlInfo requests:

tree = api.url_info(("example1.com", "example2.com", "example3.com"), "Rank", "LinksInCount")

Making SitesLinkingIn requests:

api = AwisApi(ACCESS_ID, SECRET_ACCESS_KEY)
tree = api.sites_linking_in('metmuseum.org', count=20, start=0)
for element in tree.findall('//awis:SitesLinkingIn/awis:Site', api.NS_PREFIXES):
    print element.find('awis:Title', api.NS_PREFIXES).text
    print element.find('awis:Url', api.NS_PREFIXES).text

Batch SitesLinkingIn requests:

tree = api.sites_linking_in(['metmuseum.org', 'wikipedia.org'])

Making CategoryListings requests:

api = AwisApi(ACCESS_ID, SECRET_ACCESS_KEY)
tree = api.category_listings("Top/Business/Financial_Services")
for item in tree.findall("//{%s}DataUrl" % api.NS_PREFIXES["awis"]):
    print(item.text)

Changelog

Changes since version 1.0

  • Added support for batch requests.
  • Added SitesLinkingIn request support.

Changes since version 1.1

  • Added CategoryListings request support.
You might also like...
:globe_with_meridians: A Python wrapper for the Geocodio geolocation service API

Py-Geocodio Python wrapper for Geocodio geocoding API. Full documentation on Read the Docs. If you are upgrading from a version prior to 0.2.0 please

Python client for Toyota North America service API

toyota-na Python client for Toyota North America service API Install pip install toyota-na[qt] [qt] is required for generating authorization code. Us

Design and build a wrapper for the Open Weather API current weather data service

Design and build a wrapper for the Open Weather API current weather data service that returns a city's temperature, with caching, also allowing for the temperature of the latest queried cities that are still validly cached to be retrieved.

Mazda Connected Service API wrapper based on pymazda and Flask.

Mazda Connected Service Relay Mazda Connected Service API wrapper based on pymazda and Flask. Usage Make POST calls to https://mymazda.herokuapp.com/{

pyhakuna is a client to access the API of the time keeping service hakuna.ch.

pyhakuna pyhakuna is a client to access the API of the time keeping service hakuna.ch. The Hakuna API is – unfortunately – personal and currently does

Sie_banxico - A python class for the Economic Information System (SIE) API of Banco de México

sie_banxico A python class for the Economic Information System (SIE) API of Banco de México. Args: token (str): A query token from Banco de México id_

An API that allows you to get full information about TikTok videos

TikTok-API An API that allows you to get full information about TikTok videos without using any third party sources and only the TikTok API. ##API onl

It connects to Telegram's API. It generates JSON files containing channel's data, including channel's information and posts.

It connects to Telegram's API. It generates JSON files containing channel's data, including channel's information and posts. You can search for a specific channel, or a set of channels provided in a text file (one channel per line.)

A simple Python wrapper for the archive.is capturing service

archiveis A simple Python wrapper for the archive.is capturing service. Installation pipenv install archiveis Python Usage Import it. import archi

Comments
  • Fix readme not being included

    Fix readme not being included

    The readme.rst file is being specified as readme.rest which means it is not being included in the package.

    When installing via Pip the installation fails because it is trying to access readme.rst which does not exist in the package.

    This might only be an issue with newer versions of pip as I was able to install the package earlier with no errors.

    opened by pg1671 2
  • fix single Url queries (bug introduced by commit 984cdf7d)

    fix single Url queries (bug introduced by commit 984cdf7d)

    Commit 984cdf7d introduced a bug which broke single URL queries: the added call to map() would always turn "urls" into a list, therefore "if not isinstance(urls, (list, tuple))" condition would always be false. This commit fixes it.

    opened by obormot 1
  • AWIS batch requests and special character handling

    AWIS batch requests and special character handling

    This enables batch requests of up to 5 queries as specified in the AWIS documentation by alternatively providing a list of URLs. Example:

    tree = api.url_info(("example1.com", "example2.com", "example3.com"), "Rank", "LinksInCount")

    Providing a string as first argument still works:

    tree = api.url_info("example.com", "Rank", "LinksInCount")

    Note that requests submitted in batch are still billed separately by AWS, so this only saves time not money.

    This also fixes an issue with retrieving information on URLs containing a tilde character by additional escaping.

    opened by tduchrow 1
Owner
Atamert Ölçgen
Atamert Ölçgen
Disqus API bindings for Python

disqus-python Let's start with installing the API: pip install disqus-python Use the API by instantiating it, and then calling the method through dott

DISQUS 163 Oct 14, 2022
Python bindings for swm-core client REST API

Python bindings for swm-core client REST API Description Sky Port is an universal bus between user software and compute resources. It can also be cons

Sky Workflows 1 Jan 1, 2022
An API wrapper for the file.io web service.

??️ File.io An API wrapper for the file.io web service. Install $ pip3 install fileio or

nkot56297 1 Dec 18, 2021
Nasdaq Cloud Data Service (NCDS) provides a modern and efficient method of delivery for realtime exchange data and other financial information. This repository provides an SDK for developing applications to access the NCDS.

Nasdaq Cloud Data Service (NCDS) Nasdaq Cloud Data Service (NCDS) provides a modern and efficient method of delivery for realtime exchange data and ot

Nasdaq 8 Dec 1, 2022
🚧 finCLI's own News API. No more limited API calls. Unlimited credible and latest information on BTC, Ethereum, Indian and Global Finance.

?? finCLI's own News API. No more limited API calls. Unlimited credible and latest information on BTC, Ethereum, Indian and Global Finance.

finCLI 5 Jun 16, 2022
Python bindings for ArrayFire: A general purpose GPU library.

ArrayFire Python Bindings ArrayFire is a high performance library for parallel computing with an easy-to-use API. It enables users to write scientific

ArrayFire 402 Dec 20, 2022
Python bindings for BigML.io

BigML Python Bindings BigML makes machine learning easy by taking care of the details required to add data-driven decisions and predictive power to yo

BigML Inc, Machine Learning made easy 271 Dec 27, 2022
Python bindings to the Syncthing REST interface.

python-syncthing Python bindings to the Syncthing REST interface. Python API Documentation Syncthing Syncthing REST Documentation Syncthing Forums $ p

Blake VandeMerwe 64 Aug 13, 2022
Python bindings for LibreTranslate

Python bindings for LibreTranslate

Argos Open Tech 42 Jan 3, 2023
pylunasvg - Python bindings for lunasvg

pylunasvg - Python bindings for lunasvg Pylunasvg is a simple wrapper around lunasvg that uses pybind11 to create python bindings. All public API of t

Eren 6 Jan 5, 2023