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

Error logging?

Open rebelanomaly opened this issue 5 years ago • 9 comments

Is your feature request related to a problem? Please describe. For some profiles, I'm getting "Error while scraping: " I looked a the history files and don't see any errors. The same profiles downloaded ok the other day.

Describe the solution you'd like Is there a way to show error messages for issue with each profile?

rebelanomaly avatar Apr 30 '20 10:04 rebelanomaly

Yeah, if all the video's are not downloaded. And also if i could add further, a Error Message if the profile is not found. eg. if i type afd8hend, which doesn't exist, as a username, it could show profile not found.

ItsABlackScreen avatar May 01 '20 10:05 ItsABlackScreen

i will see what i can do in the next update

drawrowfly avatar May 02 '20 19:05 drawrowfly

I would like to second this - Currently, if a profile is not found, it only shows as 0 videos downloaded. It would be more sensible to show and Error (and continue execution if bulk scraping) instead of showing 0 videos downloaded.

merqwury avatar May 12 '20 07:05 merqwury

I will see what i can do

drawrowfly avatar May 12 '20 12:05 drawrowfly

Out of curiosity, did errors ever get added? Every time I run tiktokscraper it seems to complete successfully but scrapes 0 posts. It doesn't report any errors though so I have no idea what could be wrong. Note: I have gotten it to work on another machine so I know the args I'm passing work. I just don't know what's wrong with my setup on my other machine.

johndoughmaker22 avatar Apr 05 '21 01:04 johndoughmaker22

Out of curiosity, did errors ever get added? Every time I run tiktokscraper it seems to complete successfully but scrapes 0 posts. It doesn't report any errors though so I have no idea what could be wrong. Note: I have gotten it to work on another machine so I know the args I'm passing work. I just don't know what's wrong with my setup on my other machine.

I frequently have this problem as well. I'll run it and it will scrape a bunch of posts. Then the next day or so I try it on other valid users and it completes while scraping 0 posts. Same result in bulk mode and in single-user mode. I think a likely reason is that our IP was blocked after scraping too much. I wonder if there's a way the API can tell this is the case and print an error instead.

apastel avatar Jun 09 '21 14:06 apastel

I still have this issue and haven't figured out how to fix it. I also haven't figured out if there's any logs reported anywhere.

On Wed, Jun 9, 2021 at 7:19 AM Alex Pastel @.***> wrote:

Out of curiosity, did errors ever get added? Every time I run tiktokscraper it seems to complete successfully but scrapes 0 posts. It doesn't report any errors though so I have no idea what could be wrong. Note: I have gotten it to work on another machine so I know the args I'm passing work. I just don't know what's wrong with my setup on my other machine.

I frequently have this problem as well. I'll run it and it will scrape a bunch of posts. Then the next day or so I try it on other valid users and it completes while scraping 0 posts. Same result in bulk mode and in single-user mode. Looking to see if there's another issue on this...

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/drawrowfly/tiktok-scraper/issues/120#issuecomment-857734988, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALQNIRXDDXKRXXIBFXSGKJDTR5Z6ZANCNFSM4MVMNK3Q .

-- Thanks, John

johndoughmaker22 avatar Jun 10 '21 16:06 johndoughmaker22

You have to look into using a proxy because your IP was likely blocked. tiktok-scraper supports this and mentions how to supply your proxy as an argument. As far as setting up a proxy, that's something you have to do on your own.

apastel avatar Jun 10 '21 16:06 apastel

I have tried using a VPN to mask my IP to various locations and it still has issues though. Shouldn't that be functionally equivalent? Also, is there an error log or message anywhere that I can determine why something failed?

On Thu, Jun 10, 2021 at 9:32 AM Alex Pastel @.***> wrote:

You have to look into using a proxy because your IP was likely blocked. tiktok-scraper supports this and mentions how to supply your proxy as an argument. As far as setting up a proxy, that's something you have to do on your own.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/drawrowfly/tiktok-scraper/issues/120#issuecomment-858770057, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALQNIRSOL3CQ4LYGA4XH5YTTSDSKHANCNFSM4MVMNK3Q .

-- Thanks, John

johndoughmaker22 avatar Jun 10 '21 20:06 johndoughmaker22