PDF Scraper/ Downloader using Python & Selenium - Automation Tutorial (Free require no service)

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ม.ค. 2025

ความคิดเห็น •

  • @Custodian123
    @Custodian123 ปีที่แล้ว +1

    You're a legend, will try this out. I kept trying to find the element for the download button on the new tab for the pdf.

  • @midoumerrouche9217
    @midoumerrouche9217 ปีที่แล้ว +2

    I greatly appreciate your help, it's incredibly valuable

    • @ideaconcursos
      @ideaconcursos ปีที่แล้ว

      And when you open a new tab with selenium, is it possible to download the PDF automatically? Because when I click the Download button, a tab opens with the PDF already open and I want to download it automatically. Help me please!

  • @godfreyvella35
    @godfreyvella35 ปีที่แล้ว

    Excellent! Very well explained

  • @Anil-l6v7g
    @Anil-l6v7g 10 หลายเดือนก่อน

    is this possible to configure the file path dynamic instead of hardcoding the path in main code.Please reply

  • @nhatthanhma9466
    @nhatthanhma9466 4 หลายเดือนก่อน

    hi , if i want to rename after download ,how could i do that

  • @Lina-zn1yq
    @Lina-zn1yq 2 ปีที่แล้ว

    needed it ! thank you so much

    • @ideaconcursos
      @ideaconcursos ปีที่แล้ว

      And when you open a new tab with selenium, is it possible to download the PDF automatically? Because when I click the Download button, a tab opens with the PDF already open and I want to download it automatically. Help me please!

  • @wesleyfarriss7684
    @wesleyfarriss7684 2 ปีที่แล้ว +1

    Very helpful!

    • @AminBoutarfi
      @AminBoutarfi  2 ปีที่แล้ว +1

      Thank you!

    • @ideaconcursos
      @ideaconcursos ปีที่แล้ว

      And when you open a new tab with selenium, is it possible to download the PDF automatically? Because when I click the Download button, a tab opens with the PDF already open and I want to download it automatically. Help me please!

  • @olliegreen3290
    @olliegreen3290 11 หลายเดือนก่อน

    i keep getting a stale element reference exceptions thrown at a.get_attriibute and cant seem to debug .

  • @venistachristopher4563
    @venistachristopher4563 4 หลายเดือนก่อน

    Can we use multiple url pages here?

  • @tcctech3211
    @tcctech3211 9 หลายเดือนก่อน

    would be nice to have a sample of the python script to play with but good video thank you

  • @anjelas2708
    @anjelas2708 4 หลายเดือนก่อน

    What if theres no pdf but it shows a print window

  • @Vixnuverse
    @Vixnuverse ปีที่แล้ว

    Thank You So much man.

  • @eratera5836
    @eratera5836 ปีที่แล้ว +1

    what version of selenium are you using? This used to work with selenium 3+ but w/ selenium 4+ .. same code doesn't work for setting custom downloads directory

    • @AminBoutarfi
      @AminBoutarfi  ปีที่แล้ว

      I'm using Selenium 4!

    • @eratera5836
      @eratera5836 ปีที่แล้ว

      @@AminBoutarfi Huh weird. Maybe it has to do w/ OS or a specific selenium 4 version. Thanks for letting me know.

    • @AminBoutarfi
      @AminBoutarfi  ปีที่แล้ว

      @@eratera5836 you welcome! What error you are getting?

    • @eratera5836
      @eratera5836 ปีที่แล้ว

      @@AminBoutarfi no error just custom directory is not setting ... it always defaults to downloads directory ... I've tried every solution I can think of, including what you had in video.

    • @AminBoutarfi
      @AminBoutarfi  ปีที่แล้ว

      @@eratera5836 not sure how to help you then. Will share my code afterwards and you can try it out!

  • @BlowFlow04
    @BlowFlow04 ปีที่แล้ว

    There's any way doing it as --heardless option?

    • @AminBoutarfi
      @AminBoutarfi  ปีที่แล้ว

      I believe so yeah. Didn't try it tho to confirm!

  • @ideaconcursos
    @ideaconcursos ปีที่แล้ว

    And when you open a new tab with selenium, is it possible to download the PDF automatically? Because when I click the Download button, a tab opens with the PDF already open and I want to download it automatically. Help me please!

    • @AminBoutarfi
      @AminBoutarfi  ปีที่แล้ว +1

      Did you watch the video till the end? I added code to specifically prevent that. Check video 13:25 . Hope it helps!

  • @boutarfimanel2893
    @boutarfimanel2893 ปีที่แล้ว

    Thank you