I use a filteredstream with a number of filters. When a tweet event fires, I need to deduce which filter the tweet relates to, as this affects what I do with the information.
This is fine, except in some cases the filter has been matched not on the text in the tweet, but on a URL which is embedded in the tweet, unfortunately the URL presented in the tweet is an indirect shortened one which contains no trace of the original filter. For example, using a filter of the word 'golden' I receive this tweet:
[Raspians (@Raspians) posted] RT @TheRascalPower: @Raspians https://t.co/nZLJdBm9bI help us be the change! #BeTheChange #charity #india #charitywater #Travel #WeNeedYo…
No mention of the word 'golden' in there. But if browse to the short URL it redirects to
https://www.indiegogo.com/projects/documenting-change-the-golden-triangle#team&ui-state=dialog
which does contain the word 'golden'.
Is there any way I can get the hold of the original URLs from the Tweet object?
Thanks.
This is fine, except in some cases the filter has been matched not on the text in the tweet, but on a URL which is embedded in the tweet, unfortunately the URL presented in the tweet is an indirect shortened one which contains no trace of the original filter. For example, using a filter of the word 'golden' I receive this tweet:
[Raspians (@Raspians) posted] RT @TheRascalPower: @Raspians https://t.co/nZLJdBm9bI help us be the change! #BeTheChange #charity #india #charitywater #Travel #WeNeedYo…
No mention of the word 'golden' in there. But if browse to the short URL it redirects to
https://www.indiegogo.com/projects/documenting-change-the-golden-triangle#team&ui-state=dialog
which does contain the word 'golden'.
Is there any way I can get the hold of the original URLs from the Tweet object?
Thanks.