tiktok-scraper icon indicating copy to clipboard operation
tiktok-scraper copied to clipboard

[Tutorial] How to download from private users!

Open MrMoHanD opened this issue 4 years ago • 10 comments

for this tutorial I'm on ubuntu 14.04 and installed tiktok-scraper module via npm

Get your sessionid cookie value

login to tiktok via any browser (e.g.: chrome) and get your sessionid cookie value sessionid

Edit the entry.js file

edit the following file /usr/lib/node_modules/tiktok-scraper/build/entry.js by adding seesionid=xxxxxxxxxxxxxxxx; to line 36 ttscookie

save it and you are ready to go!! you can use available command !

MrMoHanD avatar Dec 30 '20 05:12 MrMoHanD

So that's great! Would it be possible to add the sessionID as an optional command line parameter?

o7n avatar Jan 19 '21 10:01 o7n

@o7n you probably didn't checked the documentation

Please read it :)

drawrowfly avatar Jan 19 '21 11:01 drawrowfly

There is already option that can be used to set session

drawrowfly avatar Jan 19 '21 11:01 drawrowfly

Oops, my apologies! Last time I read the documentation was two months ago...

o7n avatar Jan 19 '21 11:01 o7n

Hey man, I've been using this tutorial...but in the latest version (1.4.27), the cookie line no longer exists in "entry.js". Should we just add it manually the way it looks in your screenshot? Or has the method changed?

paulescobar avatar Jun 09 '21 11:06 paulescobar

Hey man, I've been using this tutorial...but in the latest version (1.4.27), the cookie line no longer exists in "entry.js". Should we just add it manually the way it looks in your screenshot? Or has the method changed?

Works same way as before

drawrowfly avatar Jun 09 '21 12:06 drawrowfly

Hey man, I've been using this tutorial...but in the latest version (1.4.27), the cookie line no longer exists in "entry.js". Should we just add it manually the way it looks in your screenshot? Or has the method changed?

Works same way as before

But in the tutorial, the guy is adding "sessionid" content to line 36 (which has that "cookie, tt_webid" content). In the scraper's latest update (1.4.28)...line 36 doesn't exist anymore. Above it just shows "user-agent" & "referer".

When you say "works same way" do you mean I should add that "cookie" line manually?

paulescobar avatar Jun 09 '21 16:06 paulescobar

Has anyone managed to get this to work with the sessionList option?

halmos avatar Jun 28 '21 20:06 halmos

@halmos add in brackets of header function as shown above: cookie: 'sessionid=XXXXXXXXXXXXXXXX;', it works for me

alanblue2000 avatar Jul 21 '21 03:07 alanblue2000

After the 36 line I added this, but is not working referer: 'https://www.tiktok.com/', cookie: 'sessionid=XXXXXXXXXXXXXXXX;',

nicolaieg avatar Mar 04 '22 16:03 nicolaieg