Automate downloading TikTok videos with no watermark | Python Automation tutorial

Поделиться
HTML-код
  • Опубликовано: 1 окт 2024
  • Learn how to automate boring mundane tasks in your life with Python, Selenium and BeautifulSoup.
    In this video I explain how you can come up with projects that can be great for your resume. In most cases, finding a problem in your life that you want to solve will suffice. I walk you through a pain point in my life, specifically downloading tiktok videos without watermark and uploading it to youtube.
    Link to code (You need to change some fields in the code to get it to work)
    github.com/cod...
    🔥 Drop a comment to help the algorithm :)
    👍 Subscribe to get notifications for the next video
    👉 Bootcamp Full Series Playlist: • Python - Intro to Prog...
    -----------------
    😎 Resources
    -----------------
    👯 TikTok
    📸 Instagram
    💬. Join the Discord
    📜. FREE Resume Template
    📕. FREE Note taking template
    beacons.ai/cod...
    -----------------
    👾 Important Videos
    -----------------
    My Computer Science experience: • What it was really lik...
    The side project that got me interviews: • The side project that ...
    My Resume walkthrough: • The resume that got me...
    Ace your technical interviews: • How to ace your techni...
    -----------------
    🧑🏻‍💻 About Me
    -----------------
    I am a full time iOS engineer, with over 7 years of programming experience.
    My goal is teach you the bare minimum necessary to break into tech ASAP.
    Learn more about my programming journey
    7 years of coding in 12 minutes: • 7 years of coding in 1...
    I offer 1 on 1 mentorship as well, feel free to DM me on discord
    #python #automation #learntocode #codewithvincent
    Tags: python automation, automate the boring stuff with python, learn python, automate your life, learn python fast, python fundamentals, learn to code, coding projects, coding project ideas, python tutorial, desktop automation, coding tutorial, python 101, how to automate tasks for beginners

Комментарии • 369

  • @CodewithVincent
    @CodewithVincent  Год назад +11

    The code can be found in the description of the video :)

    • @BhargeyKaneriyaBEC
      @BhargeyKaneriyaBEC Год назад +1

      Sure i have idea but i don't know coding do you have time to talk?

    • @hriad
      @hriad 11 месяцев назад

      @@BhargeyKaneriyaBECmaybe i can help you

    • @roberto6918
      @roberto6918 8 месяцев назад

      I dont know why but it doesnt works for me, I mean I did the changes and all, where I Can find your discord?

    • @battaszakaria6278
      @battaszakaria6278 6 месяцев назад

      hi can i download it without watermark in tiktok creative ad center just by inspect element in chrome ?
      and what is the fonction that make the watermark on the video ?

  • @soulLiftscriptures
    @soulLiftscriptures Год назад +10

    Wow, just wanted to take a moment to express my sincerest gratitude for this amazing video! It has truly touched my heart and made my day. Your creativity, passion, and hard work shines through in every frame. Thank you for sharing your talent with the world and spreading positivity and joy. You truly are a blessing and I'm so grateful to have stumbled upon this gem. Keep shining and spreading love, we need more content like this in our lives 💕🙌

  • @ElitePanCake645
    @ElitePanCake645 Год назад +9

    Please keep making tutorial videos like this one. Very detailed and didn't skip any steps. You even showed your mistakes which is great! +1 liked

  • @gurumiles050
    @gurumiles050 Год назад +2

    but not working in banned countries so we need to install vpn software and connect to other contries vpn and run the code 100% work

  • @moreknowledge11
    @moreknowledge11 Год назад +1

    I am wondering is it still work? because as I inspect user profile page and can't find the tag or element like the video. (sorry for my bad English)

    • @moreknowledge11
      @moreknowledge11 Год назад

      I mean I can't find href with full like as in video 😢.

    • @CodewithVincent
      @CodewithVincent  Год назад +1

      @@moreknowledge11 it should be working, I used it a few days ago. The element could have changed, all you need to do is look for it in the inspect tool

  • @myteddyshield
    @myteddyshield Год назад +2

    Hey, first of all thank you very much, its really well explained and it works pretty good! I've just one little problem.. Maybe you could help me, the script works fine but it always crash after some downloads (i would like to bulk download) i've tried to change my VPN while the script is running but still the same. I think the problem is with the cookies/header no ? Maybe including a rotation on cookies or/and headers could solve it ?

    • @CodewithVincent
      @CodewithVincent  Год назад +1

      One thing I did was I saved all of the links in a file and fed it to the download script. If the download fails, I would remove all of the links that I have downloaded already and continue from there 👍

    • @myteddyshield
      @myteddyshield Год назад

      @@CodewithVincent

  • @Pioner_group
    @Pioner_group Год назад +2

    The video is amazing! , by the way i swaped the part of scrolling down with my own that is just spamming arrow down 😂

    • @CodewithVincent
      @CodewithVincent  Год назад +1

      That's awesome! Glad it worked :) and nice arrow spam!

  • @Threecommaaclub
    @Threecommaaclub Год назад +1

    type error: "Nonetype" object is not subscriptable

    • @CodewithVincent
      @CodewithVincent  Год назад +1

      Can you share your code and what line the error is occuring

    • @Threecommaaclub
      @Threecommaaclub Год назад +1

      @@CodewithVincent Traceback(most recent call last):
      file users ... line 67 in
      File ... Line 31 in downloadvideo
      downloadLink = downloadSoup.a["href]
      Type error: nonetype object is not subscriptable

    • @CodewithVincent
      @CodewithVincent  Год назад

      @@Threecommaaclub my guess is that your downloadSoup does not have any link tags inside of it. My recommendation would be to double check that you are parsing the HTML correctly. If you need more help, you can join the discord!

    • @Threecommaaclub
      @Threecommaaclub Год назад +1

      @@CodewithVincent sounds like a plan 😁😁 please provide link to the discord

  • @Ромарио-р8г
    @Ромарио-р8г Год назад +2

    Автор видео просто красавчик, молодец, и очень хороший человек в целом. ОЧЕНЬ помог.

  • @matteoprada5851
    @matteoprada5851 9 месяцев назад +1

    Hey dude, first of all thank you for the amazing work, I modified it for my own page and it works fine as hell, but i encountered a problem, once in a while it gives me an error while downloading the video "OSError: [Errno 22] Invalid argument: 'videos/23-Proof The Real World is a Sc*m..mp4'" like this for example, could it be the "*" freaking it all up ? if so there is a way to skip certain videos from downloading ? thank you and sorry for my bad english, im 18 and italian im trying my best :)

    • @matteoprada5851
      @matteoprada5851 9 месяцев назад

      nope it aint the "*", i tried with ann if to isolate the video but it gives me the same error again

    • @CodewithVincent
      @CodewithVincent  9 месяцев назад

      Maybe change the file names, try just doing file1, file2 to see if it works

  • @uzplaylists
    @uzplaylists 8 месяцев назад +1

    wait... how does the website download without watermark though

  • @REDFUNDUH
    @REDFUNDUH 10 месяцев назад +1

    how should i go about it if i want to implement a by-certain-amount-of-like approach so it only downloads videos that have potential or are viral. Im planning on automatically uploading it on reels (i get it if you're not comfortable answering this as it is probably breaking some rules)

    • @CodewithVincent
      @CodewithVincent  10 месяцев назад

      You can probably use tiktoks filter and filter based on likes, then you can grab the links for those videos.

  • @gogodiego
    @gogodiego Год назад +2

    truly a great video and i love papaya i didnt know you guy were behind him

  • @joserobertovasquezluna1654
    @joserobertovasquezluna1654 6 месяцев назад

    Brother some errors arose: "urllib.error.HTTPError: HTTP Error 403: Forbidden" " "ValueError("unknown url type: %r" % self.full_url)
    ValueError: unknown url type: '/es'" What can I do? Only I was able to download 33 videos

    • @CodewithVincent
      @CodewithVincent  6 месяцев назад

      I assume since you were able to download some videos, one of the video links must be corrupt and you'll need to add logic to filter that

  • @victorseantech
    @victorseantech Год назад +2

    WILL TAKE ME 4 YEARS TO DO THIS LOL

  • @theblacktrini
    @theblacktrini Год назад +2

    I have no experience in coding but I still watched your entire video. I’m mindblown at the things you can achieve with some code

    • @CodewithVincent
      @CodewithVincent  Год назад +1

      Haha and fun fact RUclips is made by code too 🙂 feel free to check out my free coding series to dabble your feet in some fun

  • @delawlol
    @delawlol Год назад

    i don't know why it's not listing the links :(
    here is the output
    STEP 1: Open Chrome browser
    STEP 2: Scrolling page
    Process finished with exit code 0

    • @CodewithVincent
      @CodewithVincent  Год назад

      Looks like something didn't work in step 2. Did it even open the browser?

  • @Jigginsify
    @Jigginsify Год назад +1

    I keep getting the error "NameError: name 'link' is not defined". If i define the "link" I wont let me download all videos. Do I need to run another library? lmk thanks

    • @CodewithVincent
      @CodewithVincent  Год назад +1

      My assumption is that something is wrong with the header since you can't get the link field. Please try to update your values again. You can also join the discord and share your code to make it easier for me to help

  • @TheKreatorStory
    @TheKreatorStory 8 месяцев назад +2

    hey bro i am unable to find my cookies

    • @RobertBernarius
      @RobertBernarius 6 месяцев назад

      disable cookie blockers (pihole, or something similar).

  • @hiiamsheep
    @hiiamsheep Год назад +1

    hey, thanks for this video!
    but i have a problem :
    it's always the same and first video which is downloaded,
    can you help me 😅?

    • @CodewithVincent
      @CodewithVincent  Год назад +1

      You probably hard coded the link of the video. Please cross reference with the github code

  • @Toasted8
    @Toasted8 Год назад +1

    Hello sorry to bother you but random question im downloading bulk memes off this one page but a few have a ? in the title of the video and subsequently its the name of the file, but windows cannot handle a ? in a file name, would there be anyway to make a if videotitle contains ? replace - or _ for instance?

    • @CodewithVincent
      @CodewithVincent  Год назад

      Yes python has a function called replace, which you can use to replace the ? With another character

  • @wallysonpato777
    @wallysonpato777 Год назад +1

    i need help please, in line 60, when a change "f" to "r" save in the directory what i want, but all the videos are the same name {id} [video] so download the new and delete the last one

    • @CodewithVincent
      @CodewithVincent  Год назад +1

      You probably messed up step 1 somewhere. Make sure you aren't hard coding the URL links.

  • @hamzaahmad564
    @hamzaahmad564 Год назад +1

    words cannot describe how deeply in love with you i am (no homo)
    thank you

  • @CristianIntriago_
    @CristianIntriago_ Год назад +1

    Excellent video!!!, learned a lotttt, how do I publish my projects on my portfolio, github?

    • @CodewithVincent
      @CodewithVincent  Год назад +1

      Yeah, you can use github. I have a video that explains how to upload projects :)

  • @electryryn9359
    @electryryn9359 Год назад +3

    Please, How did you do to skip the tiktok bot verification ? (it's like a captcha)

    • @CodewithVincent
      @CodewithVincent  Год назад +1

      Hmm, there was no captcha for me, can you share how you got to the captcha step?

    • @kartoffelbreip1974
      @kartoffelbreip1974 Год назад +1

      I have the Captcha as well. haven't figured out how to bypass it yet...

    • @kartoffelbreip1974
      @kartoffelbreip1974 Год назад +2

      Okay so what i did is, to increase the wait time after opening the page and complete the captcha myself. that works fine.
      won't be completely automated then but its only one click more. That shouldn't be a problem

    • @electryryn9359
      @electryryn9359 Год назад +1

      @@CodewithVincent It's juste when the tiktok page open, there I a captcha

    • @CodewithVincent
      @CodewithVincent  Год назад

      @@electryryn9359 oh interesting, glad you were able to find a workaround!

  • @hamstersmash
    @hamstersmash Год назад +1

    hey bro this was working up until 2 days ago, i don't see any structure changes that i can tell, do you know why my scripts are no longer able to find any videos?
    div wrapper etc hasn't changed

    • @CodewithVincent
      @CodewithVincent  Год назад +1

      I can't help you if you're not telling me what the error or output is lol

    • @hamstersmash
      @hamstersmash Год назад +1

      @@CodewithVincent Oh all good bro i didn't realize my chrome updated version, but yea fair enough aswell lol, cheers man tops video!

  • @socksi9201
    @socksi9201 5 месяцев назад

    when in html why does it say for me css instead of tiktok-

  • @anonfourtyfive
    @anonfourtyfive Год назад +1

    Ok, now I understand why are people using beautifull soup with Selenium.
    I've learn how to use XPATH and was wondering why people were using Beautiful soup.
    They skip xpath shit haha... it's hard, but it worth ;-)

    • @anonfourtyfive
      @anonfourtyfive Год назад +1

      Haha so many related story with me.
      Love this video btw,
      at 10:30, in Selenium I've used key page down key a couple of times ( or as needed ) to scroll down lel.. with ActionsChain.

    • @CodewithVincent
      @CodewithVincent  Год назад

      Haha looks like we had similar struggles 😋

  • @mznchill
    @mznchill 3 месяца назад

    The discord link in the description doesnt work...

  • @VFEShort169
    @VFEShort169 Год назад +1

    Brother please help create for Automate downloading douyin videos with no watermark

  • @hoanganhduong4415
    @hoanganhduong4415 Год назад +1

    I have a problem that when using scroll, it will get captcha. do you have a solution?

    • @CodewithVincent
      @CodewithVincent  Год назад

      Some people in the comments have a workaround with the captcha,, maybe you can try that out. Or you can change the wait time to 60 seconds and you can manually do the captcha yourself.

  • @VibotPro
    @VibotPro Год назад +1

    hello please create with php version

  • @svetlanakoroteeva8970
    @svetlanakoroteeva8970 Год назад +1

    Wow! Thank you. Even did not try how it is working, but it is already cool!

  • @iroelasoy171
    @iroelasoy171 Год назад +1

    please make script uncollect in tiktok (( in Favorit )) can uncollect Automatic

  • @orochoYT
    @orochoYT Год назад +1

    Thank you so much man i really love coding👀

  • @missipidog4962
    @missipidog4962 Год назад +1

    Can you update this with a website which doesn't have the 10 second cooldown?

    • @CodewithVincent
      @CodewithVincent  Год назад

      If you find a website let me know, I can update the code 👍

  • @johndenver6769
    @johndenver6769 Год назад +1

    Hey I think my comment got deleted? This downloader downloads the video in 540p. Would you like me to share the one that downloads it in 720p/1080p (whatever the video was uploaded in)? At least tell me why you'll delete this comment before you do though please.
    Thank you. Awesome video.

    • @CodewithVincent
      @CodewithVincent  Год назад +1

      Hi I've never deleted your comment. Feel free to share

    • @johndenver6769
      @johndenver6769 Год назад

      @@CodewithVincent Hello. It's called. Downloads all videos in 720p/1080p without fail. Would you be able to update the script with this website?

    • @CodewithVincent
      @CodewithVincent  Год назад

      @@johndenver6769 feel free to fork the repository and make a pull request

  • @KuyLyhour-q6l
    @KuyLyhour-q6l 2 месяца назад

    I have followed your code, but I can’t play videos.

    • @CodewithVincent
      @CodewithVincent  2 месяца назад

      The code is outdated, someone made an updated version on my discord

  • @mohacker
    @mohacker Год назад +2

    You are a rockstar bro. Well done

  • @inspiredforever
    @inspiredforever Год назад +1

    With my another account, i gave 100th like. Yay.
    With this account, i gave 101th like. 😎👍

    • @CodewithVincent
      @CodewithVincent  Год назад +1

      You are awesome ❤️

    • @inspiredforever
      @inspiredforever Год назад +1

      We are awesome together, brother! How to approach you on telegram or whatsapp or Instagram any ?

    • @CodewithVincent
      @CodewithVincent  Год назад

      @@inspiredforever discord, I have a beacons link in description of the video

  • @SHINAN1
    @SHINAN1 Год назад +2

    Where is the code for this bot?

    • @CodewithVincent
      @CodewithVincent  Год назад +1

      It's in the tutorial :) maybe I'll upload it somewhere when I get the chance

  • @missipidog4962
    @missipidog4962 Год назад +1

    An error shows up when I run it saying "Can't create base directory: C:\Program Files\Google\GoogleUpdater" Fixed it had to just download chrome driver. It shows an error but the downloading works

    • @redmango1025
      @redmango1025 Год назад

      the code is not working anymore!

    • @missipidog4962
      @missipidog4962 Год назад

      @@redmango1025 it works for me

    • @redmango1025
      @redmango1025 Год назад

      @@missipidog4962 how did you get the cookies or header info from network tab of chrome browser? I am using python and mac environment.

  • @Balad-masr
    @Balad-masr 2 месяца назад

    للاسف لاتعمل مع قائمة تشغيل

  • @quiz4all418
    @quiz4all418 Год назад +1

    It opens me a chrome window in which i am not logged into tiktok so i have to insert email and password but tiktok says "Too many attempts. Try again later." Is it possible to solve in some way? I've tried waiting for almost 4 hours but still get the same error. On a normal chrome tab i can login without problems from this same pc.

    • @CodewithVincent
      @CodewithVincent  Год назад +1

      Hmm I'm not sure to be honest, maybe this link can help stackoverflow.com/questions/35641019/how-do-you-use-credentials-saved-by-the-browser-in-auto-login-script

    • @quiz4all418
      @quiz4all418 Год назад +1

      @@CodewithVincent Ok solved! Had to use the solution taken from your link but also have to retreive data as cookies and header from the new chrome istance opened by python because those values are different from the default chrome istance. Thanks!

    • @CodewithVincent
      @CodewithVincent  Год назад

      @@quiz4all418 sweet! Glad it worked!

  • @samtricks-ln4vv
    @samtricks-ln4vv Год назад

    Its Now Working
    bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: html.parse. Do you need to install a parser library?

    • @CodewithVincent
      @CodewithVincent  Год назад

      No I don't think I have installed a parser, just BS4

  • @darylghee3333
    @darylghee3333 Год назад +1

    Closes immediately once i run script, whats the issue here?

    • @CodewithVincent
      @CodewithVincent  Год назад

      Do you have more information? Mind sharing your code?

  • @Avhiv
    @Avhiv Год назад +1

    Having a bit of an issue with the coding, my program seems to download only the same video again and again. I did a check to see the links and it seems to be getting different but only sending one to download. Help needed!!!

    • @CodewithVincent
      @CodewithVincent  Год назад

      Double check the data field when you make the request for the video download link. Also feel free to share your code

    • @Avhiv
      @Avhiv Год назад +1

      That did the trick. Thank again for the help. Just started programming and these kind of projects are keeping me motivated.

  • @voltageinc9590
    @voltageinc9590 8 месяцев назад

    TikTok has some sort of CAPTCHA protection now, so I'm not sure if this still works. For me at least it didn't because of the bot detection. I tried headless in selenium and user agent arguments but also didn't work. I guess its not possible anymore. :/

  • @aspirohk3558
    @aspirohk3558 Год назад

    Wonder if one can do same with other languages like c or 🙈🙈🙈asm

  • @pepperumo5116
    @pepperumo5116 Год назад +1

    hi, tried to build it, but apparently now the link to the downloaded videos are not the real one but a generic tiktok webpage

    • @CodewithVincent
      @CodewithVincent  Год назад

      Just made changes to the code, please try again. It works for me :)

    • @novuspad
      @novuspad Год назад

      You can still do it just remove the scroll as it's not needed, and then grab the link from the title not the video card. Process should be the same.

  • @SantoshSendha
    @SantoshSendha 4 месяца назад

    The code runs successfully but video videos are not downloaded?

  • @KevinGordilloArchive
    @KevinGordilloArchive Год назад +1

    Can I Please pay you to hop on a zoom call with me and do this/help me with this? I can't seem to figure it out lol.

    • @CodewithVincent
      @CodewithVincent  Год назад

      Sure, there's a link in the description for beacons. You can DM me there

    • @KevinGordilloArchive
      @KevinGordilloArchive Год назад

      @@CodewithVincent Are you going to DM me how to do it or are we going to hop on a zoom call where you we can screen share and you help me there?

    • @CodewithVincent
      @CodewithVincent  Год назад

      @@KevinGordilloArchive if you cannot follow the instructions above, I will not be able to help you

    • @KevinGordilloArchive
      @KevinGordilloArchive Год назад +1

      @@CodewithVincent I can its just that what I'm asking is diff than whats being offered above bro, It says to pay to DM- which I do not mind at all- but I just want to know if once I complete all steps would we be able to get on a quick zoom call? Sorry to be a n00b in this.

    • @CodewithVincent
      @CodewithVincent  Год назад

      @@KevinGordilloArchive usually the fix is very simple. If it isn't we can hop on zoom

  • @rayzorr
    @rayzorr Год назад +1

    Great stuff and I will work my way through this a few times to make sure I understand it. I'm an old noob to python, just managed to get a scraper working that dumps a bunch of data into a CSV file, including the link to the video. So Im looking to use some aspects of your code but loading the links I already have from the CSV.

    • @rayzorr
      @rayzorr Год назад

      haha, got it working! Great stuff. Just need to figure out how to deal with file names. Some video descriptions are too long and contain weird characters that crash the script when it's creating the file. Noice!

  • @dbzthanh949
    @dbzthanh949 Год назад +1

    How to backup data device

    • @CodewithVincent
      @CodewithVincent  Год назад +1

      I'm not sure sorry

    • @dbzthanh949
      @dbzthanh949 Год назад

      @@CodewithVincent yes,I look forward to seeing your video on this, thanks

    • @CodewithVincent
      @CodewithVincent  Год назад

      @@dbzthanh949 I don't know what that is

  • @SevereDev
    @SevereDev Год назад +1

    I think tiktok patched it because it always says "something went wrong" when the program tries to scroll the page

    • @novuspad
      @novuspad Год назад

      You can still do it just remove the scroll as it's not needed, and then grab the link from the title not the video card. Process should be the same.

    • @CodewithVincent
      @CodewithVincent  Год назад

      That's correct, anyways a workaround 🙂

    • @SevereDev
      @SevereDev Год назад

      @@CodewithVincent Yeah I tried but they won't let me scroll down

    • @CodewithVincent
      @CodewithVincent  Год назад

      You don't need to use the auto scroll feature then. You can do that manually and pull the HTML yourself

  • @krissradev6708
    @krissradev6708 Год назад +1

    why dont you just use xpath for videos?

  • @codding505
    @codding505 Год назад +1

    thx
    you are best

  • @purrfectlyadorable
    @purrfectlyadorable Год назад +1

    Sir, How to download at least 2 videos at the same time

    • @CodewithVincent
      @CodewithVincent  Год назад

      I'm not sure, I had to download them one at a time. If you find out, please let me know :)

  • @longbunly
    @longbunly Год назад

    Tiktok updated, i can't find video url anymore, please help

    • @longbunly
      @longbunly Год назад

      I solved it. and Thank you very much I learn a lot about python from this amazing video. I will share it to the people around me who love coding

    • @CodewithVincent
      @CodewithVincent  Год назад

      What was the fix?

  • @missipidog4962
    @missipidog4962 Год назад +1

    ValueError: unknown url type: '/' randomly stopped at 118th download

    • @CodewithVincent
      @CodewithVincent  Год назад

      Maybe something is wrong with the url after the 118th video 🙁 you can also get the html source and check what the issue is with that one.

    • @missipidog4962
      @missipidog4962 Год назад

      @@CodewithVincent why would there be an issue with the url

    • @CodewithVincent
      @CodewithVincent  Год назад

      @@missipidog4962 I don't know you'll have to investigate the page source

  • @TraveltasticGuideToTravel
    @TraveltasticGuideToTravel Год назад +1

    can we modify this code to also rename each of the downloaded video with the caption of that video ?
    or we could just download all the text from the video titles and store them into a csv folder.

    • @CodewithVincent
      @CodewithVincent  Год назад

      Yes you can modify the code :)
      The code that I shared includes the titles for the videos

    • @TraveltasticGuideToTravel
      @TraveltasticGuideToTravel Год назад

      @@CodewithVincent thanks is there a way to change the default location of the downloaded videos. I want to put them on my D drive instead of my C drive.

    • @CodewithVincent
      @CodewithVincent  Год назад

      @@TraveltasticGuideToTravel yeah just provide the full path to the file "D://.../videos/..."

  • @ahmerali3304
    @ahmerali3304 Год назад +1

    i want to make video downloader for tiktok like i should input url of the video and it should download that video can we do that with this code?? and how

    • @CodewithVincent
      @CodewithVincent  Год назад

      You'll only want the code that downloads the video and then you can feed it whatever URL you want

    • @ahmerali3304
      @ahmerali3304 Год назад +1

      @@CodewithVincent can i do this just by modifying your code?

    • @CodewithVincent
      @CodewithVincent  Год назад

      @@ahmerali3304 yes

  • @oudom9629
    @oudom9629 Год назад +1

    i found the solution how to escape captcha
    from selenium.webdriver.chrome.options import Options
    options = Options()
    options.add_argument("--disable-extensions")
    options.add_argument("--disable-blink-features=AutomationControlled")
    driver = webdriver.Chrome('chromedriver',options=options)

    • @CodewithVincent
      @CodewithVincent  Год назад +1

      Ohh that's nice! Good job 😊

    • @oudom9629
      @oudom9629 Год назад +1

      @@CodewithVincent please make another tutorial about downlaod video from ig,youtube,fb... please

    • @CodewithVincent
      @CodewithVincent  Год назад

      @@oudom9629 I could look into it, just need some time 😊

    • @ahmerali3304
      @ahmerali3304 Год назад

      @@oudom9629 can you pls send me the code??? on my email or insta?

    • @ahmerali3304
      @ahmerali3304 Год назад +1

      pls check your email

  • @khemsokhoeun8662
    @khemsokhoeun8662 Год назад +1

    can you help me?
    OSError: [Errno 22] Invalid argument: 'videos/7-Who drinks louder? Papaya or Kamisato Ayato? @GenshinImpact_En #GenshinImpactMeow #GenshinImpact35.mp4'

    • @CodewithVincent
      @CodewithVincent  Год назад

      The problem is probably due to the symbols in the video title. One thing you can do is either filter out the symbols (#, @, etc) or just don't include the titles.

    • @khemsokhoeun8662
      @khemsokhoeun8662 Год назад

      @@CodewithVincent The problem is symbols (?) in the video title . can you help me

    • @CodewithVincent
      @CodewithVincent  Год назад

      @@khemsokhoeun8662 I just told you what you need to do. Follow the video, I show you how to not include the video titles lol

    • @khemsokhoeun8662
      @khemsokhoeun8662 Год назад +1

      @@CodewithVincent Yes! But i need the video title.

    • @CodewithVincent
      @CodewithVincent  Год назад

      @@khemsokhoeun8662 well I just told you what you need to do. If you browse the discord there's a solution for this somewhere :)

  • @lm9553
    @lm9553 4 месяца назад

    Does this work with Instagram reels?

  • @kolocode6272
    @kolocode6272 10 месяцев назад

    You make it hard. Why need selenium to crawl the webpage while you can just call the API? In dev tool, you can go to network section then you can scroll the webpage to make it load more data, you will see the triggered api pop up. Just change the pagination variable then you can get all urls of videos from that profile. Thank for your sharing. It is good to share what we know.

  • @LongVicheka-rd3je
    @LongVicheka-rd3je 6 месяцев назад

    បងជួយប្រាប់របៀបធ្វើLicense key ពេលយើងសរសេរProgramហើយយើងដាក់ជួលអោយគេប្រើផងបង❤ ។ អគុណបង❤

  • @lavamonkeymc
    @lavamonkeymc Год назад

    Is there any way to automate grabbing the "cookies" "headers" "params" stuff? Mybe using web driver?

  • @danysvay
    @danysvay 9 месяцев назад

    I get an error
    import requests
    ModuleNotFoundError: No module named 'requests'

    • @Arsdevss
      @Arsdevss 9 месяцев назад

      open cmd and type pip install requests

  • @coolgameloll9996
    @coolgameloll9996 Год назад +1

    It says missing modulesource requests, but thx

  • @Xzeviouss
    @Xzeviouss Год назад +1

    did u delete my comment?

    • @CodewithVincent
      @CodewithVincent  Год назад

      No I did not? Maybe RUclips filters comments. You can try sharing your code on the discord instead

    • @Xzeviouss
      @Xzeviouss Год назад

      @@CodewithVincent im just taking the link out maybe that works

    • @CodewithVincent
      @CodewithVincent  Год назад

      @@Xzeviouss it's falling on step 4. That means you didn't do the headers and cookies correctly. Please watch the video again

    • @Xzeviouss
      @Xzeviouss Год назад

      @@CodewithVincent ok

  • @kobe5971
    @kobe5971 Год назад

    When selenium opens the browser and opens tiktok, tiktok prompts for a human verificaton and when it does, the browser just closes and no videos are downloaded. Any way to work around this?

    • @CodewithVincent
      @CodewithVincent  Год назад

      Set a longer wait time, like 60 seconds so that you can complete the captcha

  • @SantoshSendha
    @SantoshSendha 4 месяца назад

    Thanks Brother, I need that, Love You Brother

  • @akastrow7585
    @akastrow7585 11 месяцев назад

    My code "works", but all videos are corrupted (0 kb) except the first one

    • @akastrow7585
      @akastrow7585 11 месяцев назад

      (Also, this guide is amazing, very easy to follow through with your pacing, stayed entertaining and very informative with how you go through each function)

    • @CodewithVincent
      @CodewithVincent  11 месяцев назад

      I'd recommend double checking the links that you are downloading from, make sure they are valid. Sometimes tiktok might change the links which will result in corrupted files. An alternative would be to manually grab the links yourself 😔 and feed it to the bot to download

    • @akastrow7585
      @akastrow7585 11 месяцев назад

      @@CodewithVincent Thank you for the response!
      Am trying to rewrite everything cleanly like your github.
      There is a function there about cookies right in the beginning that you say is in the video, but I for the life of me dont see anything about it.
      Is it related to the cUrl we get? I have nothing defining Cookies 😔

    • @CodewithVincent
      @CodewithVincent  11 месяцев назад

      ​@@akastrow7585 it should be from the curl command

  • @ImMykol
    @ImMykol Год назад +1

    Hi, is there any way to get all the descriptions from the videos?

    • @CodewithVincent
      @CodewithVincent  Год назад

      Yeah so in the code where we grab the href value for each video. You can also grab the the video description as well. I don't have my computer with me, but hopefully this gives you an idea of how you can do it. (Feel free to checkout the documentation for beautifilsoup if you get stuck)!

    • @ImMykol
      @ImMykol Год назад +1

      @@CodewithVincent Do I just need to change class?

    • @CodewithVincent
      @CodewithVincent  Год назад

      @@ImMykol you'll have to look at the HTML and see where the description exists and use beautiful soup to grab it!

  • @Sophyvathanak
    @Sophyvathanak Год назад +1

    Nice tutorial

  • @nerutech6654
    @nerutech6654 6 месяцев назад

    Can i ask why, do we need to change cookies and headers?

    • @nerutech6654
      @nerutech6654 6 месяцев назад

      forget to mention that your video is very detail and so much easy to understand

    • @CodewithVincent
      @CodewithVincent  6 месяцев назад +1

      Because everyone has a different computer

  • @missipidog4962
    @missipidog4962 Год назад +1

    Can you make an automatic snapchat spotlights poster? I have hundreds of videos I wanna post but it takes a while tbh

    • @CodewithVincent
      @CodewithVincent  Год назад

      Sorry I don't use Snapchat 😭

    • @missipidog4962
      @missipidog4962 Год назад

      @@CodewithVincent they pay like 50x tiktok rn tho for posting spotlights

    • @CodewithVincent
      @CodewithVincent  Год назад

      @@missipidog4962 maybe you can take this code and tweak it to work for snapchat!

    • @missipidog4962
      @missipidog4962 Год назад

      @@CodewithVincent how would i adjust it

    • @CodewithVincent
      @CodewithVincent  Год назад

      @@missipidog4962 that's your homework :)

  • @orochoYT
    @orochoYT Год назад

    I did a script very similar to yours but i have a problem it only downloads 48 videos then an error shows up and i don't know why the error is (unknown url type : '/'

    • @CodewithVincent
      @CodewithVincent  Год назад +1

      sounds like you hit a case where the URL is incorrect, you'll need to filter those out / verify a url is valid before you try to download

    • @orochoYT
      @orochoYT Год назад

      @@CodewithVincent the url is correct and im facing the same problem only 48 videos downloaded then the same error🙆

  • @quantum_tk
    @quantum_tk Год назад +1

    Hey! Super cool and very informative video. Especially for someone like me who is *very* new to programming. That being said, I'm confused why the program only runs on debug mode. What changes in debug mode?
    Also, I had an error occasionally pop up where the program couldn't write the video to my disk because the video title had a question mark in it, which windows can't do on files. Removing "- {videoTitle}" from line 56 in step 5 helped tremendously (for those that get the same error).

    • @CodewithVincent
      @CodewithVincent  Год назад +1

      Not sure what you mean by debug mode, but the code should run regardless.
      For the question about the title, you can also add code to remove question marks from the title :)

    • @quantum_tk
      @quantum_tk Год назад +1

      @@CodewithVincent Sorry, yeah it's not called debug mode. In the top right of Visual Studio Code, there's triangle that looks like a play button that runs the code. If I just click it normally, the program runs but when I check the download directory, no files are downloaded. If I click the drop down next to the run icon and select "debug python file" the program runs and the videos are downloaded for some reason. This could be something on my end, I'm not entirely sure. Like I said I am VERY new to programming lol.

    • @CodewithVincent
      @CodewithVincent  Год назад +1

      @@quantum_tk that I'm not entirely sure, I would have to look at your setup to get a better sense. One thing you can do is print out the path it is saving the files to. Then you'll know where the files are getting saved to

    • @quantum_tk
      @quantum_tk Год назад +1

      @@CodewithVincent Yep! You were completely right. They downloaded to the default windows "videos" folder instead of the one I set up for it lol. Thanks for the help!

  • @mjawmeow2449
    @mjawmeow2449 Год назад +1

    It's works, thank you so much!😍

  • @granth6542
    @granth6542 Год назад +5

    Do more project videos this was really good

    • @CodewithVincent
      @CodewithVincent  Год назад

      Thanks man! These videos take a lot of time but I'll try to do more :)

  • @alexlegoff9809
    @alexlegoff9809 Год назад +1

    very good !! it's work !

  • @iamcurrentflow
    @iamcurrentflow Год назад +1

    Cool job! Everything is fine, but there was an error with scrolling, apparently Chrome vs selenium, so it only lets you download the first 30 videos, then writes: "Something went wrong", is there a solution?

    • @CodewithVincent
      @CodewithVincent  Год назад

      You can manually scroll the entire page yourself and get the page source

    • @iamcurrentflow
      @iamcurrentflow Год назад

      @@CodewithVincent Understood, well, thank you for the work done, success in your prosperity

    • @iamcurrentflow
      @iamcurrentflow Год назад

      @@CodewithVincent I'm sorry, do you happen to have the same cool manual for mass uploading these videos to youtube?

    • @CodewithVincent
      @CodewithVincent  Год назад

      @@iamcurrentflow I ended up doing it manually because I need to retitle them myself

    • @iamcurrentflow
      @iamcurrentflow Год назад

      @@CodewithVincent have you tried using the youtube api?

  • @mycutedays
    @mycutedays 11 месяцев назад

    Hi, thank you for making this. I don’t know anything about Python and I just want to use the code in the description. Where do I put the link of my TikTok account in that code and where to put that whole code?

    • @CodewithVincent
      @CodewithVincent  11 месяцев назад

      I go through everything in the video step by step 👀

  • @FindSponsor
    @FindSponsor Год назад +1

    awesome its works . i first time use python and get success in first attempt

    • @CodewithVincent
      @CodewithVincent  Год назад

      That's awesome man! 😊

    • @forester1
      @forester1 Год назад

      @@CodewithVincent
      Yeah
      But i make JavaScript code after using this Python code .
      My code is easy to use no need to python.

    • @CodewithVincent
      @CodewithVincent  Год назад

      you should share your code @@forester1

    • @forester1
      @forester1 Год назад

      @@CodewithVincent sure . Tomorrow

  • @EstrategasEmprendedores
    @EstrategasEmprendedores Год назад

    Hello brother, how can I solve this error in the console? :
    Traceback (most recent call last):
    File "C:\Users\XCand\OneDrive\Escritorio\NEW SCRAPER\scrape_video.py", line 130, in
    downloadVideo(video.a["href"], count)
    File "C:\Users\XCand\OneDrive\Escritorio\NEW SCRAPER\scrape_video.py", line 56, in downloadVideo
    downloadLink = downloadSoup.a["href"]
    ~~~~~~~~~~~~~~^^^^^^^^
    TypeError: 'NoneType' object is not subscriptable

    • @CodewithVincent
      @CodewithVincent  Год назад

      I need more info

    • @EstrategasEmprendedores
      @EstrategasEmprendedores Год назад

      @@CodewithVincent apparently at some point in the list traversal, the current index has (downloadLink = downloadSoup.a["href"]
      ~~~~~~~~~~~~~~^^^^^^^^
      TypeError: 'NoneType' object is not subscriptable)
      --------------------------------------------
      That is why the execution of the program is paused, because I did not find the solution to that error.
      What I did was do a try catch to capture the error and so the videos that have that error are omitted and continue with the following videos, as follows:
      try:
      downloadVideo(video.a["href"], count)
      count += 1
      time.sleep(10)
      except TypeError:
      print("Error: 'NoneType' object is not subscriptable. Skipping to the next video.")
      continue

    • @CodewithVincent
      @CodewithVincent  Год назад

      @@EstrategasEmprendedores I have added debug statements in the code, it should have been outputted when you ran it. The debug statements should give you a hint of where it is failing

  • @UddhikaIshara
    @UddhikaIshara 10 месяцев назад

    links in the href, display just the home tiktok url. is there anyway to retrieve unique urls of the list?

  • @coolgameloll9996
    @coolgameloll9996 Год назад +2

    Sadly it doesnt work qnd tiktok blocks it

    • @CodewithVincent
      @CodewithVincent  Год назад

      What do you mean tiktok blocks it, I just helped someone yesterday and they were able to get it to work

    • @coolgameloll9996
      @coolgameloll9996 Год назад

      @@CodewithVincent i showed some pictures verify that you are not a bot and then Programm crashed

    • @coolgameloll9996
      @coolgameloll9996 Год назад

      @@CodewithVincent and in github you write to take something from the video what do i need to take from the Video

    • @CodewithVincent
      @CodewithVincent  Год назад

      @@coolgameloll9996 did you watch the video? Lol. For the tiktok captcha just change the timeout of the code to maybe 60 seconds and do the captcha yourself and wait for the program to run

    • @coolgameloll9996
      @coolgameloll9996 Год назад

      @@CodewithVincent yes i wonderd why the code you copied in was not in github. Because in the video you have more lines

  • @VictorSvRClubOfficial
    @VictorSvRClubOfficial Год назад +1

    Where is the code for this bot?

    • @CodewithVincent
      @CodewithVincent  Год назад

      The code is in the video :)

    • @VictorSvRClubOfficial
      @VictorSvRClubOfficial Год назад +1

      @@CodewithVincent Can you make a video to teach you how to write code, change the size of the video we want through python code. Click once to change all hours

    • @CodewithVincent
      @CodewithVincent  Год назад

      @@VictorSvRClubOfficial sorry don't quite understand your question. But I can add it to my potential lists of videos to make

  • @faded_taco1816
    @faded_taco1816 11 месяцев назад

    Could you do a updated video please I am stuck and they website code is different.

    • @CodewithVincent
      @CodewithVincent  11 месяцев назад

      This may have been patched, I haven't had time to try it. Sorry mate

  • @QuranDaily1
    @QuranDaily1 Год назад

    wow amazing video, ur chill but informative style will serve you well
    Not sure if this is interesting to you but would you consider making a video on a bot that downloads tiktok content then re-posts it onto Instagram while keeping the hashtags etc? you could possibly make it for youtube shorts too (free cat video views lol)
    much love

    • @CodewithVincent
      @CodewithVincent  Год назад

      Thanks man, will definitely look into that when I have free time.

  • @braziliandropshipper
    @braziliandropshipper Год назад +1

    Hey this is so awesome! Where did you post the code?

  • @WhisperedCrimes
    @WhisperedCrimes Год назад

    Life Saver Bro i was going on a long route there. i'm doing it on my own and already at the downloading stage. a small pointer there is going to be a captch and and loading delay or stuck which will be really a bummer and the scrolling function will not be able to get all videos just a tip for saving me. you can upload it in your next video though

    • @CodewithVincent
      @CodewithVincent  Год назад +1

      Why do you need a captcha? I never had to deal with that

  • @RumeshPeiris
    @RumeshPeiris Год назад

    Scraper works fine but the videos can't play. They save like this: "0-It seems that your link is not a valid TikTok link... Please, make sure that your link leads to a TikTok website and has a video on a page." Is there a way to fix this?

    • @CodewithVincent
      @CodewithVincent  Год назад

      You'll need to share more details from the program output. It could be something up with the code

    • @RumeshPeiris
      @RumeshPeiris Год назад

      @@CodewithVincent Sorry, my bad. I didn't change anything with the code even the div className. I tried it again after adding the className and cookies, headers as you explained in the video. I'm still not sure I added them correctly. Anyway, now I get this issue. Browser scroll the page but then it automatically close. Terminal shows "Time to download 0 videos" but it has already closed the program.

    • @CodewithVincent
      @CodewithVincent  Год назад

      @@RumeshPeiris I can't really help without seeing the output of your code. Feel free to join the discord and we can figure it out

  • @wasiTheweeb
    @wasiTheweeb Год назад +1

    U earned a sub

  • @hustleiq8459
    @hustleiq8459 Год назад

    Great video,I ran the script and it says type error: "nonetype " is not subscriptable

  • @chkbx161
    @chkbx161 Год назад

    hi I have a problem NameError: name 'link' is not defined

  • @jaffatherealest
    @jaffatherealest Год назад +1

    great vid

  • @tatersaladfpv1033
    @tatersaladfpv1033 Год назад

    I was wondering, do you know if there is anyway to modify this in a way that an email could be sent if a user uploaded a new video?

    • @CodewithVincent
      @CodewithVincent  Год назад

      There are several ways you can achieve this. You would want to keep track of the videos you've downloaded and perhaps run this script each day or however frequent you want. Then once you find a new video, you would download the video and send the email. This is something that ChatGPT can help with.