Webklex / tbm

Fetch all your bookmarked tweets and make them accessible through a webinterface.
MIT License
28 stars 3 forks source link

Access token #29

Open forestfoxx opened 1 year ago

forestfoxx commented 1 year ago

The readme file says that I need an "access token", does it mean I have to get a Twitter developer account or something? Never worked with that. Should I run the program with a twitter account logged into in a browser?

By the way, the "usage" section doesn't mention that there's an "-access-token" option. I found it with "-help"

Webklex commented 1 year ago

Hi @forestfoxx , the "access token" is a token used to authenticate the api calls. The program will try to find it by itself (it's found inside a javascript file hosted on twitter.com). If this fails, you could set it manually.

I guess you can ignore the access token in general - the cookie is the most important part. You were right, the readme was outdated. It's updated now :)

Best regards,

forestfoxx commented 1 year ago

I see, thanks. Still can't get it to work though... I see this:

Get "https://twitter.com/i/bookmarks": net/http: TLS handshake timeout
Server started on: http://localhost:{port_name}

And nothing happens.

Webklex commented 1 year ago

Hi @forestfoxx , I'm not sure what you've done, but I agree it doesn't look right :) How are you starting the program? Are you using a custom config file?

Best regards,

forestfoxx commented 1 year ago

@Webklex I'm doing it on Windows. Login to Twitter through browser -> copy the cookie -> leave twitter open -> run the program from command line with the -cookie option. I didn't use a config file.