python - What does it mean when it says "you should not be parsing the "text" field. in getting the top 10 hash tags -
i have twitter assignment in python need write program top_ten.py computes ten occuring hash tags twitter stream put .txt file. mean when says" should not parsing "text" field?
the twitter api returns tweets in form like
{ "entities": { "hashtags": [ { "text": "freebandnames", "indices": [ 20, 34 ] } ] }, "text": "aggressive ponytail #freebandnames" }
(many, many fields have been removed clarity.) assignment means should examine hashtags looking @ hashtags
list in entities
object instead of trying parse text
field find hashtags yourself.
Comments
Post a Comment