FIX Your AttributeError in Python & WHY You See it

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ธ.ค. 2024

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

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

    Man, just wanted to let you know I'm starting a new position as a Data Scraping Developer and you with your videos have been so helpful throughout the way.
    Thanks for all of your work, you truely affect people's life! And your teaching vibe is awesome

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

      That is awesome! I'm really pleased good luck with the new job!!

    • @Septumsempra8818
      @Septumsempra8818 2 ปีที่แล้ว

      John Watson Rooney and Python 360 have the best scraping vids on TH-cam right now.
      s/o from South Africa

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

    I learned web scraping by your videos, and of course I'm still learning. Thank you very much

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

      You’re welcome I’m glad they have helped

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

    I’ve been web scraping for two years now and it’s always irritating when you’ve written a block of code to find that this as an issue! Always best to inspect the actual source code before attempting a scrape, thanks for the content!

    • @JohnWatsonRooney
      @JohnWatsonRooney  2 ปีที่แล้ว

      Thanks for watching, glad you enjoyed it!

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

    What about using code like
    if price:
    price = price.text
    I do a lot of e-commerce scraping and some labels being None (e.g. Sale Price) gives information.

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

    I have just spent the last 2 hours trying to understand this error. I started learning web scraping today.

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

    you are very underrated, i love your videos

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

    One question (not directly related to this error video)
    What is better. XPATH or Style scraping when using selenium / Chrome?

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

      I always prefer css selectors because I’m so used to them, but xpath is very powerful. Pick one and learn it well and you’ll be sorted

    • @iamkian
      @iamkian 2 ปีที่แล้ว

      @@JohnWatsonRooney xpath it will be (-:
      Thank you 🤙🤙

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

    This video came a little late in your channel, but I’m super glad you made it lol. I would love to see more JavaScript content since those are the most difficult sites to scrape, at least in my opinion.

    • @JohnWatsonRooney
      @JohnWatsonRooney  2 ปีที่แล้ว

      sure, I've got some more ideas around that we can look at

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

    I was looking for this video man thanks you deserve a like.

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

    Could you do few more advanced videos? Like bypassing recaptcha v3 or advanced work with requests(when you need to do bunch of separate requests to collect verification tokens, sessionID, a lot of cookies from different places etc, before sending request you need in the first place)

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

    What I personally like to do is to first check if the element object is not None, then call its text method.
    title = title.text if title else ' '

  • @ZenoModiff
    @ZenoModiff 2 ปีที่แล้ว

    i was scrapping youtube to save links of all the videos of a channel the code is working normal i was not getting output can you make a video to scrape youtube channel video please waiting for the replay

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

    My IP got banned for a certain site. How can I change my IP address?

    • @JohnWatsonRooney
      @JohnWatsonRooney  2 ปีที่แล้ว

      Unplug your router and plug it back in again, unless you have a static ip it will change.

  • @luistaboada9379
    @luistaboada9379 2 ปีที่แล้ว

    Hello Jhon, thanks for all your Videos!!! i am trying to scrap data on a page with login and captcha.
    Can you make a video about it?
    Thanks!!!

  • @openmindjustdoit1306
    @openmindjustdoit1306 2 ปีที่แล้ว

    Whats the solv text take me error

  • @alizer3479
    @alizer3479 2 ปีที่แล้ว

    Kindly make a video on how to scrap from websites that are using recaptcha and also website using same classes name

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

    please make some more videos with selenium and scrapy

    • @JohnWatsonRooney
      @JohnWatsonRooney  2 ปีที่แล้ว

      Sure I can do that. I much prefer playwright but the idea and principles are the same

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

    Thank you again for sharing.
    Again I've learned something from you.

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

    Next Live Show Mr John?

  • @silkogelman
    @silkogelman 2 ปีที่แล้ว

    Great topic & video John! Thank you.
    I really like how you present the information & vibe.
    This got me thinking: what's the best approach to future-proof the scraping?
    I mean, websites change and that can break a now working script in the future.
    Is it advisable to apply for example the render in requests-html anyways so it can handle certain changes even if current website version doesn't need it?
    Maybe inform the admin if it breaks etc.
    Do you have any content about this topic, or give pointers about this in other videos?

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

    Nice video! thank you!

  • @lord-qk3bx
    @lord-qk3bx 2 ปีที่แล้ว

    I was expecting an inbuilt error handling logic or function there. We already knew all this.

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

    Thank you so much for your content! I have been able to earn actual money, not a lot yet, using your videos as docs to help along the way. I am going to sign up for your Patreon as soon as I can get this money off Upwork lol You are the bomb!! Please keep up the great work! 🙏🙏🙏

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

      wow thats great! I'm really pleased for you, keep it up!

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

    awesome