Use GraphQL API with timeline v2

Close #85
Close #82
Close #77
Close #76
This commit is contained in:
Alexander Sheiko 2023-06-01 23:20:11 +03:00
parent c07bd1d1d4
commit 50440667ed
7 changed files with 502 additions and 131 deletions

View file

@ -16,7 +16,7 @@ func (s *Scraper) GetTrends() ([]string, error) {
q.Add("entity_tokens", "false")
req.URL.RawQuery = q.Encode()
var jsn timeline
var jsn timelineV1
curBearerToken := s.bearerToken
if curBearerToken != bearerToken2 {
s.setBearerToken(bearerToken2)