Skip to content
This repository was archived by the owner on Aug 7, 2024. It is now read-only.
This repository was archived by the owner on Aug 7, 2024. It is now read-only.

Retrieving media entities #16

@mih0001

Description

@mih0001

Should ensure that each function call that goes to Twitter has the ability to set the parameters to include_entities.

For example, Get Mentions. I added include entities like shown:

def GetMentions(self,
since_id=None,
max_id=None,
page=None,
include_entities=None):

More importantly, in line 616, 'urls' needs to be changed to 'media' to actually retrieve the data. Urls doesn't return data. See https://dev.twitter.com/docs/tweet-entities

Here is my new line 616 and 617

616 if 'media' in data['entities']: ###changed 'urls' to 'media'
617 urls = [Url.NewFromJsonDict(u) for u in data['entities']['media']] #changed 'urls' to 'media'

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions