Jefferson-Henrique / Jefferson-Henrique/GetOldTweets-python

White spaces added in links

Open
#119 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.3k
Forks
790
PR merge metrics
No merged PRs in 30d

Description

Hi! I have a weird bug when I try to get tweets that contains links. It returns tweets with spaces added in the link at random positions.

For example for this tweet https://twitter.com/edimitchel/status/921162963641389056 which is : "TobyMac propose des solutions pour les femmes! #balancetonson #balancetonporc https:// youtu.be/HJ1DHhobVVg"
it returns the same text but there is a white space between https:// and youtu

For this one : https://twitter.com/jennylynn41069/status/921159647343595522 I get a white space between international/ and archive in the link.

My code is :

```
tweetCriteria = got.manager.TweetCriteria().setQuerySearch('#hello').setSince("2017-10-13").setUntil("2017-11-13").setMaxTweets(10)
tweets = got.manager.TweetManager.getTweets(tweetCriteria)
```

Does someone had the same problem ? Is there a solution ?

Edit : There is[ a MR](https://github.com/Jefferson-Henrique/GetOldTweets-python/pull/108/commits/ca536ab268eda7f0a73ea490f17a2895f020fb6d) which allows to grab attached links, so its much easier to find these white spaces and delete them.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.