n0madic / twitter-scraper

Scrape the Twitter frontend API without authentication with Golang.
MIT License
899 stars 187 forks source link

Don't replace existing `http.Client` #89

Closed windowsdeveloperwannabe closed 1 year ago

windowsdeveloperwannabe commented 1 year ago

Currently Scraper.client is replaced with a new one when using a proxy, so CookieJar is nil and panics on https://github.com/n0madic/twitter-scraper/blob/2b607217fd1165007e9e2f52fea03b3e0df4e2e3/api.go#L36 where it is used.

n0madic commented 1 year ago

nice, thx