replacement of the python facebook API? [closed] - python

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
as stated in bug #17429, official support for the python api is ending, does anyone know of a up-to-date facebook api for python? or should I look for another language or web framework?

[...] does anyone know of a up-to-date facebook api for python?
Facepy might be what you're looking for.

According to that ticket support for SDK ends. The whole facebook API is language/technology agnostic and just a regular OAuth-based RESTful one

While I develop Facebook apps in PHP (still supported), I switched to mainly using the javascript SDK. I think it's a better user experience and Facebook automatically upgrades it when they change the rules. Which seems quite often. Typically, there isn't any change required in your javascript code.

Django Facebook is mature:
https://github.com/tschellenbach/Django-facebook
There's nothing language/framework agnostic about the facebook API.
The open graph api has it's own syntax.
Oauth takes care of authentication, but you still need to convert the output data to something your app can work with.

Related

Accessing the eBay Developer's API through Python? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I've been searching for a library to use to access the eBay Dev API (using Python 3) for quite some time, but the sources I've found either don't specify the use of Python 3 (and I've learned to assume that this means they use 2.x) or haven't been updated for years.
Can somebody point me in the right direction? Is there a library I'm missing? Or should I try to implement it myself? If I have to implement it myself...any words/tutorials to help? I'm really confused here....thanks in advance.
eBay API can be found in this general link: https://www.x.com/developers/ebay/documentation-tools/tutorials
And 2.7x isn't obsolete? Pray tell why it won't be in a couple years? Or...just...what?
sigh due to the words spoken here and read elsewhere...I'll just bite the bullet and re-learn Python in 2.7.x....whatever. Thanks anyways.
python-ebay is a python wrapper for eBay APIs. It covers most of the eBay APIs.
PS: I wrote it.
I tried python-ebay but it doesn't implement every function of the Finding API (for example, there is no findCompletedItems function).
The alternative ebaysdk-python seems to be more actively maintained, is a little more flexible and does everything I need in a more simple way (IMO).
For example, getting completed items for a category is as simple as:
api = finding(appid='APP_ID')
api.execute('findCompletedItems', {'categoryId': '619'})
print api.response_dict()
The dictionary that's passed to the execute function exactly mirrors the eBay Finding API documentation, so if you can read that, you can basically do anything you need with the above three line of code.
The official eBay page https://go.developer.ebay.com/ebay-sdks recommends https://github.com/timotheus/ebaysdk-python . Currently ebaysdk-python has been updated 9 days ago and regularly since 2011, while python-ebay hasn't been updated for 20 months.

Looking for a lightweight Python web framework with minimal configuration [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I realise that web application frameworks are well documented, yet having tried 2 Python frameworks and found that are neither are suitable for my task, I hope you'll understand the need for this question.
I'm looking for a lightweight, "micro" framework for Python with the following features:
Basic HTML layout management
Features for HTML forms, tables etc.
Authentication and session management
Preferably integrable with mod_wsgi
Seamless importing of packages
That's it. You may ask why I need a framework for this at all - I don't. But it would save a lot of time, and I'm very surprised that I can't find something like this.
I'm reasonably advanced in Python but want to deal with the HTML and authentication as effortlessly as possible. I have a lot of existing code that I would like to be called from within the framework. I don't require an ORM or DAL, I would like my existing classes to continue to use their own MySQLdb driver. Inevitably, for authentication to be handled, an ORM or DAL will be included, but I just won't use it for anything other than authentication.
I have tried web2py and Grok, both supposedly lightweight, configuration-free frameworks, yet both were far too high-level.
Thanks in advance.
You should have a look at flask.
It comes with jinja as a template language.
It doesn't contain any ORM.
There are lots of well supported extensions for sessions, forms, ORM, etc.
You can also try WebPy.
The full (?) list of python web frameworks is given here. This slideshow compares 10 micro frameworks and should be of intrest. Not all of them will tick your boxes but at least it should give some hints as to their pros/cons.
I propose looking into web.py and Tornado.
Web.py is incredibly simple to use with a power of a full web framework.
I used it for OData implementation with great success.

Where can I find a good mwclient introduction? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I'm just starting with mwclient. I'm going to create bots to query our MediaWiki database and make small revisions.
But I cannot find anywhere a simple list of python commands like how to get ages of pages, contents of categories, contents of pages, etc.
Does anyone know a good starters resource?
The official docs at https://github.com/mwclient/mwclient/wiki have some introductory tutorials. I'm in charge for documentation for mwclient but haven't had enough time to really expand them - could use help from anyone who is willing.
One of my colleagues just sent me a link to the MediaWiki API wiki page.
I currently use python+urllib for API queries, and mwclient whenever I need to edit/create a page.
An useful place to get started with mwclient (read/edit/create a page):
http://brianna.modernthings.org/article/134/write-api-enabled-on-wikimedia-sites
The Bot Manual also has tons of good info and links, e.g. creating a bot.

OAuth 2.0 Tutorial? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I'm writing a REST web service on twisted and I want to use OAuth 2.0 for authorization. Is there a tutorial out there to help me write the OAuth server without having to read the entire spec? I know it's in draft, but even Facebook is using it.
Edit for 2012: Try Google OAuth 2 playground at https://code.google.com/oauthplayground for a practical demo. It will allow you to see working requests.
There aren't any good, generic OAuth 2 tutorials. Obviously the IETF spec, like any engineering spec, is designed to be specific and verbose rather than short and simple.
Additionally many other oAuth 2 documents are diffs of oAuth 1, which is a horrible way to try and learn something.
I find Google's own (Google-specific) oAuth 2 documents relatively good to get an understanding of how it practically works - what's sent, in what request, to whom:
https://developers.google.com/oauthplayground/
FWIW, I have an example project here using django and piston with oauth2: https://bitbucket.org/justinfx/django-piston-oauth2-nonrel-example
OAuth ends up being so simple, there's really no need for a library. It boils down to using HTTPS and passing the correct POST parameters as specified in the draft: https://datatracker.ietf.org/doc/html/draft-ietf-oauth-v2-10

Is there any libraries could import contacts from hotmail/live/aol account? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I've import contacts from gmail by using gdata api,
and is there any apis like that for hotmail/live/Aol ?
There is Windows Live Contact API for Hotmail/Live mail.
Yahoo Contact API for Yahoo also exists, but to this date, no AOL contact api.
I would suggest you try openinviter (openinviter.com) to import contacts. Unfortunately, you will not have OAuth capabilities, but it is the best class out there and works with 90+ different email providers.
Note: it is written in php, but creating a wrapper won't be too hard.
If you are able to export from them to the standard vCard format, you can read and process vCard data using the vobject package.
Hotmail/Live
There is Windows Live Contact API for Hotmail/Live mail, which is similar to GData API.
AOL
As far as I remember AOL doesn't provide API to access its address book, however they working on it (for long time)...

Categories