Giter Site home page Giter Site logo

twitter-text-python's Introduction

twitter-text-python's People

Contributors

bonsaiden avatar firemyst avatar seanbrant avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

twitter-text-python's Issues

Can not handle short domain

Twitter will parse "name.com" as a seperate link and convert it to a t.co one, however this module does not do as the same.

Py3k compatibility

(.py3kvenv) yegle@november ~ $ python ttp.py
  File "ttp.py", line 26
    AT_SIGNS = ur'[@\uff20]'
                           ^
SyntaxError: invalid syntax

This is a test on Python 3.3.0

Extracted URL contains invalid characters

import ttp
p = ttp.Parser()
result = p.parse("Poet & MacArthur Fellow A.E. Stallings (http://t.co/Q8x1T1JP) injects humor and passion into the Greek and Roman Classics.")
result.html
'Poet & MacArthur Fellow A.E. Stallings (<a href="http://t.co/Q8x1T1JP)">http://t.co/Q8x1T1JP)</a> injects humor and passion into the Greek and Roman Classics.'

Actual Result: <a href="http://t.co/Q8x1T1JP)">http://t.co/Q8x1T1JP)</a>
Expected Result: <a href="http://t.co/Q8x1T1JP)">http://t.co/Q8x1T1JP</a>

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.