python twitter libraries - which one to use? [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 8 years ago.
Improve this question
I want to extract information from Twitter using Python. There is a page with several twitter libraries:
https://dev.twitter.com/docs/twitter-libraries
Now I am not sure which one to use. Does anyone has experiences with them? I tried Twython and it is easy to handle but are the others worth a try too?

Tweepy is worth a go as it quite conveniently wraps the User, Tweet, Status etc... into easily accessible Python objects. The other one I've used is plain python-twitter, which does make interfacing easier, but is closer to raw bones JSON queries, and you have to remember the correct URLs to query. IIRC, both support standard interactions and the ability to use the tracking and searching engines.
Have a look on http://pypi.python.org/pypi?%3Aaction=search&term=twitter&submit=search for other options - but it really depends what you want to do and how. I've had success with the aforementioned but I can't recommend any ideal Python twitter library.

I have spent the past few weeks working with Twitter-Python -- the one hosted through Google. I really like the library, although I have not used tweepy or twython. I am pretty new to Python and I have find using Twitter-Python to be very intuitive and easy -- the library has tons of methods to return pretty much any data point you want. It can be a bit daunting since it's a lot of code, but once you get familiar with the library I think it's really simple to use. As the other users have noted though, Twitter-Python doesn't have a streaming API (as far as I know), so if you need that use tweepy.

Depends on what exactly you want to do. Twython is good and is regularly updated as well. Besides that,
Python Tweeter should take care of most of the stuff you would want to achieve. Plus, it's easy and fun to use.
If you need some sort of streaming API support, Tweepy is what you should go for.

Related

Looking for example or documentation for wikidump python lib [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 stumbled upon the wikidump python library, which I think suits me just fine.
I could get by by looking at the source code, but I'm new at python and I don't want to write BS code as the project I need it for is kind of important to me.
I got the 'wiki-SPECIFICDATE-pages-articles.xml.bz2' file and I would need to use that as my source for single article fetching. Can anyone give me some pointers as to properly achieve this or, even better, point at some documentation? I couldn't find any!
(p.s. if you got any better and properly doc'd lib, please tell me)
Not sure if I understand the question, but if you have the Wikipedia dump and you need to parse the wikicode, I would suggest mwparserfromhell lib.
Another powerful framework is Pywikibot, that is the historic framework for bot users on Wikipedia (thus, it has many scripts dedicated to writing pages, instead of reading and parsing articles). It has a lot of documentation (though, sometimes obsolete) and it uses MediaWiki API.
You can use them both, of course: PWB for fetching articles and mwparserfromhell for parsing.

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.

Is there something better than django-piston? [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
With 145 forks, 125 open issues, and the last release almost 2years ago, django-piston appears to be approaching abandonware and since the project I'm working on is likely to be a big one, I'd like to standardise on something that's going to be around for a while. Is there something resembling a consensus in the Python/Django community regarding a preference for REST API services? Even if it's one of those 145 forks? Ideally, I'd like to find something that plays nice with #jacobian's REST Worst Practises
check http://djangopackages.com/grids/g/api/ (django-tastypie looks very promising)
I also don't like Piston very much. Don't misunderstand me. It is (or was) a good app, though it has its issues. The main problem I had working with it that it hides Debugging information coming from django.
If you are absolutely unsure about what to use roll your own. With django 1.3 and class based views you got already a good way to add an API like this. If you need OAuth or other authentication methods you can simply check existing ways in piston or other apps and use them.
Two other REST packages that may be of interest :
http://django-rest-framework.org/
http://benoitc.github.com/dj-webmachine/index.html
It is worth mentioning about
django-tastypie
This is getting faster acceptance than the others.
Django Piston project seems to be abandonned.
Django rest framework has taken a large advantage with its second version.
Note that this is valid for now (2014), time may decide different.

Building a financial app with Django [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 7 years ago.
Improve this question
I'm building an app for a small business so I've to work with currencies, decimal numbers, etc... My goal is to create something like pulseapp.com.
I've searched for opensource projects to look and the only thing I had found was django-cashflow. This app uses python-money.
I've read some of the code and the ways it's coded seems a bit weird to me and it's not fully complete.
Is the app worth to take a deep look?
Does anyone know about another similar app?
Is the task difficult or a begginer like me could find a way to code it himself?
If you're dealing with currencies, you might look to satchmo's codebase. http://www.satchmoproject.com/ They're the current front-runner in Django e-commerce. I'm sure they have money modules.
Here you have something you might be interested:
Tryton with Django
I started to use python-money in an application a couple years ago, but had to abandon it due to some problem. I apologize for forgetting the exact problem, but I do remember for our use case it didn't make sense anyway... we just needed decimal fields.
I'd also be wary of django-cashflow not having any activity for 2 years, although the project is small enough it should be easy enough to fix any problems yourself.
For existing Django accounting apps I would suggest enhancing, or at least looking at, minibooks. NOTE: the license is AGPL v3 which could make it unusable for your environment.
Another road to travel would be to investigate porting OpenERP (also GPL IIRC) from Python/GTK to Django. Tryton might also be a starting point, it's GPL3 and IIRC a fork of OpenERP.
I've written a framework to help speed up the development of customised commerce aspects of django sites: Rollyourown shopping.
It lets your write your models yourself, and uses a declarative syntax to define a summary class, which handles calculating totals, caching and formatting values etc. It's pretty fast for my use cases, and very flexible: I've used it for online stores, billing for consulting-services and auction sites :-)
The current version works fine, but I'll be releasing a '1.0' version later this month as I decide on the final (stable) API details (names etc) and maybe some external reviews.

Categories