Skip to content
This repository was archived by the owner on Apr 4, 2018. It is now read-only.
This repository was archived by the owner on Apr 4, 2018. It is now read-only.

validation.tweet_length behaves wrong #28

@sophiejames

Description

@sophiejames

Hi,

tweet = '#RobertHalf is looking for a 3+yrs ASP.NET Immediate Opening, apply now! (#Baltimore) #job http://workfor.us/roberthalftechnology/cp8n349'
twitter_text.TwitterText(tweet).validation.tweet_length()

return 128

while posting on twitter I get the error :

# Raw error: u'[{"message": "Status is over 140 characters.", "code": 186}]'

Indeed, it seems that the lib parses http://workfor.us/roberthalftechnology/cp8n349 as the unique url (and count 23 characters for it) while Twitter API considers ASP.NET as the unique url and count the second url for 46 characters!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions