I have been successfully using the Python Tweepy library to download data (tweets) from Twitter. I had substantial help with my code using Tweepy. For the next stage of my research, I need to access the Premium Search API, which I cannot do using Tweepy. Twitter recommends using TwitterAPI for premium search, available from #geduldig on GitHub. The problem is I'm new to Python and it would be a steep learning curve for me to learn TwitterAPI. Am I able to use TwitterAPI just to access the premium search API, but use Tweepy for other tasks (implement search query, etc)?
I do not know specifics about the libraries you asked, but of course, you could use both the libraries in your program.
You need to spend a little bit more time grokking the TwitterAPI library. I do not think that amounts to a steep learning curve.
Related
Does anyone know any good resources/ tutorials/ books to get started with Bloomberg's API blpapi in python?
I have searched everywhere and I haven't found anything at all..
If you download the API from the official website and you the zip file, you will find an "examples" folder which has plenty of examples.
Then there's the core developer guide if you need help on the schemas.
xbbg is a library with minimum setup and some relatively powerful functionalities:
https://xbbg.readthedocs.io/
For example this is how to download historical intraday data:
from xbbg import blp
blp.bdib('AAPL US Equity', '2018-11-21')
Currently we use ESRI's Business Analyst Online (BAO) to create demographic reports based on geospatial inputs (3-mile ring around an address, or within a city's boundaries, etc.). These are generally output from the point and click web application as PDF or Excel files.
I'm trying to automate the process of retrieving those reports from ESRI BAO. I have installed the Python 3.5+ package arcgis following instructions found here. This seems to get me started with the ArcGIS functionality, but I don't see any API functionality for the BAO toolset. Is there another API package I should be downloading? Or is there documentation on a REST/SOAP API I can call from Python? I've looked over the documentation, but if there's something there about what I'm trying to do I haven't found it.
Has anybody tried to do this before and been successful? Let me know.
After starting trials for several ArcGIS services I found that ArcGIS Online provides access to ESRI's REST API. As of today, once you've signed up (either paying or with a trial) you can navigate to the ArcGIS GeoEnrichment Service Documentation. That documentation tells you everything you need to know about how to access the same reports you would find in ESRI BAO, but through a REST API.
I am new to web development and working on a personal project with motive to learn to build websites in Python that interacts with third party API.
My website is very simple, it that allows user to play a YouTube video and list the data corresponding to it, like no. of views, Likes & Dislikes,in the same page similar to a YouTube page where videos are played. I would be using YouTube Data API and Player API to do it.
I would like to know which web architecture should i follow to build such a website. I have build sites on MVC architecture in Java but here i am not sure if that is feasible. I would be using urllib2 and requests library to access the API in XML & JSON. I tried to search it in the web but in most of the cases i got 'how to build a Web API' which do not suffice my requirement.
I would appreciate if someone provide me a link to resource or any Github project from where i can learn about architecture in depth.
Thanks in Advance.
Unless I misunderstood your requirements, your app consumes the YouTube API. At the minimum you would need these python packages flask, requests, google-api-python-client and oauth2client (documentation available in each project's page)
Here are some examples from Google on how you would use their library.
The 12 factor app page has general guidlines on how to design a web application.
I am trying to figure out the difference between Google's GData API ( http://code.google.com/p/gdata-python-client/ ) and Google's APIs Client Library for Python ( http://code.google.com/p/google-api-python-client/ ).
They both seem to be by Google. Which is the official one? How are they different? The second seems to use OAuth primarily.
If anyone has knowledge or experience using either it would be great to get some information about this!
PS: I though about putting this on superuser, but because it is programming related I thought it would be better here.
The difference is the same as the difference between the corresponding Java libraries (http://code.google.com/p/google-api-java-client/ and http://code.google.com/p/gdata-java-client/)
That is, the gdata- version of the code has gone into maintenance mode, probably won't be updated to cover new APIs, but will have bugs fixed as they're found. The google-api- version is under very active development.
There's a good discussion of the pros and cons of each version of the Java api here: http://code.google.com/p/gdata-java-client/wiki/MigratingToGoogleApiJavaClient
The non-java-specific parts of that document also apply to the python api libraries.
These libraries are also intended to support different protocols.
The APIs supported by google-api-python-client are discovery based, while those supported by gdata-python-client use the GData protocol.
I'm starting to develop a facebook application using Django.
I'm trying to choose the appropriate API wrapper for my application and I can't decide whether to use PyFacebook (very well documented but no official release) or the official Facebook Python SDK (which is surprisingly poorly documented).
Are there any major differences between the two that I'm missing?
Thank you,
Liz
I believe PyFacebook was made for the old Facebook API (used to be the way to go) while the Facebook Platform Python SDK is a new official library from facebook and is aimed towards the new Graph API
So I suggest you start using the latter. And yeah the documentation totally sucks in both cases, took me a while to figure it out.
UPDATE:
For you latecomers: The most recent up-to-date seems to be: https://github.com/pythonforfacebook/facebook-sdk/