Git Product home page Git Product logo

python-bitly's People

Watchers

 avatar

python-bitly's Issues

Publish to PyPI

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

data['results'] is None

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

api method to count no of user clicks for all the links shorten by user

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

Shortening the single URL in a list returns string

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

simplejson

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

API returns results in inverse order

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

wrong description in webpage

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

shortening of "ftp://" fails

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

Is there an API that allows me to access information about a user rather than a URL? I'd like to publish how many clicks I have for my user account.

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

Login must by lower case

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.