awaisdar001 / python-bitly Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/python-bitly
Automatically exported from code.google.com/p/python-bitly
Please publish this library to the Python package index PyPI so it's easier to
install. https://pypi.python.org/pypi
Original issue reported on code.google.com by [email protected]
on 19 Jun 2014 at 11:52
What steps will reproduce the problem?
- sporadic error... appears data['results'] is being returned as None
code:
bt = bitly.Api( login=settings.BITLY_LOGIN, \
apikey=settings.BITLY_API_KEY )
article.short_url = bt.shorten( found_article['url'] )
What is the expected output?
- expect a short url
What do you see instead?
File "/home/chirpsy/django/chirpsy/agents/functions/agent_controller.py", line 57, in AgentController
article.short_url = bt.shorten( found_article['url'] )
File "/home/chirpsy/django/chirpsy/articles/functions/bitly.py", line 69, in shorten
self._CheckForError(json)
File "/home/chirpsy/django/chirpsy/articles/functions/bitly.py", line 177, in _CheckForError
for key in data['results']:
TypeError: 'NoneType' object is not iterable
What version of the product are you using? On what operating system?
- version is not indicated.
- Linux, python 2.6
Please provide any additional information below.
- At first I thought this was a bad bitly login/apikey, but the key is valid
and the error occurs sporadically.
Lib should gracefully handle errors...
Original issue reported on code.google.com by [email protected]
on 7 Nov 2011 at 6:48
What steps will reproduce the problem?
1.this is request to add feature
2.kindly add a function to the api to find total no of click for the user
that week through all the links shorten by the user
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 11 Mar 2010 at 9:49
What steps will reproduce the problem?
>>> import bitly
>>> api = bitly.Api(...)
>>> api.shorten(['http://lionet.info/'])
'http://bit.ly/aPZ1d2'
>>>
What is the expected output? What do you see instead?
The expected output is a list of a single element, not a string.
What version of the product are you using? On what operating system?
Trunk version of bitly.
Original issue reported on code.google.com by [email protected]
on 8 Mar 2010 at 12:41
from django.utils import simplejson
Many people don't have django. Also from 2.6 onwards you can just use
'import json'
Original issue reported on code.google.com by [email protected]
on 25 Aug 2009 at 10:32
1. Use bitly.shorten() with a list of urls argument
2. Observe results are in DIFFERENT order from the order of arguments
A list of shortened links should appear in the same order as the corresponding
long urls given in
the argument list.
Trunk version of bitly.py
Original issue reported on code.google.com by [email protected]
on 8 Mar 2010 at 12:33
What steps will reproduce the problem?
1. go to code.google.com/p/python-bitly
2. read the page
3. "A python wrapper around the Twitter API"
What is the expected output? What do you see instead?
"A python wrapper around the Bit.ly API"
Original issue reported on code.google.com by [email protected]
on 29 Jul 2009 at 11:19
Hi, I really like this pythonlib. Unfortunetly i've got a problem with
links to ftpfiles.
Here's a snippet:
>>> api = bitly.Api(login=myLogin,apikey=myKey)
>>> api.shorten('ftp://ftp.oreilly.de/pub/katalog/web20_broschuere.pdf')
u'http://bit.ly/6h7RmN'
The short link redirects to:
http://ftp//ftp.oreilly.de/pub/katalog/web20_broschuere.pdf
So the link is not quite right.
When i paste the url into the webinterface a working shortend link is:
http://bit.ly/8AdvYZ
Is there some kind of workaround or fix? Thanks a lot.
u'http://bit.ly/6h7RmN'
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 18 Jan 2010 at 4:23
What steps will reproduce the problem?
1.I'd like to publish the no of clicks inmy user account
2.In the bitly web the required result is produced in this page
http://bit.ly/app/summary
3. I need this result in API
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 11 Mar 2010 at 10:23
What steps will reproduce the problem?
1.Login with "AbcdEf" is no possible
Maybe you could mention that
Thank you
Original issue reported on code.google.com by [email protected]
on 5 Apr 2010 at 3:06
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.