Results 1 to 2 of 2

Thread: Script problems with Python, Twitter, Oauth, etc.

  1. #1
    Join Date
    Feb 2011
    Location
    Miami, Florida
    Beans
    129
    Distro
    Xubuntu

    Script problems with Python, Twitter, Oauth, etc.

    Running Ubuntu 14.04 with Python installed. I came across a blog post about a script to report slow speeds with Comcast. http://pastebin.com/WMEh802V

    I love this idea. But, I'm having issues with the code. I guess my twitter app tokens are in the wrong order.


    I'm using Python's Twitter 1.17.1.


    Output:
    trying to tweet
    Twitter sent status 401 for URL: 1.1/statuses/update.json using parameters: (oauth_consumer_key= ............ )
    details: {u'errors': [{u'message': u'Could not authenticate you.', u'code': 32}]}
    The documentation doesn't match Twitter App terminology so I used this:
    TOKEN_KEY="Access token"
    TOKEN="Access token secret"
    CON_SEC="Consumer secret"
    CON_SEC_KEY="Consumer key"

    Any help would be appreciated.
    Last edited by derekcentrico; February 1st, 2016 at 09:18 PM.

  2. #2
    Join Date
    Feb 2011
    Location
    Miami, Florida
    Beans
    129
    Distro
    Xubuntu

    Re: Script problems with Python, Twitter, Oauth, etc.

    LOL. Newbed it hardcore. Didn't run twitter at CLI to authorize it. UGH!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •