How To Code A Web Scraper In C# | Programming Tutorial For Beginners

Поделиться
HTML-код
  • Опубликовано: 20 авг 2024
  • Hey there!
    In today's video, we discuss how to code a web scraper in C#. Web scraping is ultra useful for a variety of programs and a fun way to test out your programming skills. Enjoy!
    Thanks for watching! :)
    This project is available on GitHub at
    --------------------------------------------------------------------------------------
    github.com/Sha...
    Add Me On Discord!
    --------------------------------------------------------------------------------------
    Username: Shaun(Hashtag)5626
    Want to see more?
    --------------------------------------------------------------------------------------
    / @shaunhalverson
    Legal Disclaimer
    --------------------------------------------------------------------------------------
    Assets in the thumbnail & video were provided by artists on
    www.canva.com
    The art used in this video is from Canva and is used solely for the purpose of enhancing or demonstrating these coding tutorials. I do not claim ownership or credit for any of the art shown in this video. I am a paid member of Canva Pro and have the rights to use the art in this video as outlined in my membership agreement. If you have any questions about the use of the art in this video, please contact me.
    Video Tags
    --------------------------------------------------------------------------------------
    Software Engineering / Programming for beginners / variables types / computer science / compsci / coding for beginners / learn how to program / learn how to code / C# variables / python for beginners / coding tutorial / programming tutorial
    #programming #tutorial #learntocode

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

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

    Best video I have found on how to get the htmlDocument. Thanks.

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

    This is a great video for beginners, liked and thanks!

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

    Super simple scraper example. Love it! Very helpful.

  • @herozero777
    @herozero777 9 месяцев назад +2

    A very nice and concise video on the topic. Thank you.

  • @pavelpanashchuk292
    @pavelpanashchuk292 3 месяца назад +1

    Hello. I'm getting error 401 (http forbidden). How can I solve it?

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

    Learning a lot from your vids. Thanks!

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

    Awesome tutorial brother 🤝

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

    Superb and informative with very nice explaination.

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

    Quick and easy, thanks

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

    Can't we just look for class and ignore element altogether? It will make it more generic.

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

    HELL YA!
    How does someone build the SDK to scrape the internet from scratch?

  • @A.B.SEA.123
    @A.B.SEA.123 Год назад +1

    is there a way to obtain a certain cookie from a website

  • @abdelkiki
    @abdelkiki 7 месяцев назад

    Thank you so much

  • @MrFreddess
    @MrFreddess 9 месяцев назад +2

    Cant get the example to work. Only gets a null reference.

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

      the html class at conditionElement is a div not a span. The string should look: "//div[@class='....

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

      Thats becouse u using httpClient.GetAsync(url) instead of httpClient.GetStringAsync(url)

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

    Hey, this video helped a ton!
    I've got one question though. Is this possible to scrap basic information and detect whether the object presence is true or false?
    I want to web scrape information from the Flight Radar website. When the certain helicopter is flying, it appears on the flight radar website. If it lands, the helicopter disappears from the map.
    Is this possible to make an app that sends a notification whenever the desire object pops up on the map? I'd be grateful for some guidance!!!

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

    Thanks, that was well and easily explained. Why won't (Point == $0) be fetched? Many other things I get hold of, but not one like this. User //td[@id='point']

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

    Nice video bro!

  • @user-mv9ul9tz1c
    @user-mv9ul9tz1c Год назад +1

    Thank you it help me a lot, but how could get aria-label data from below structure, thank you!!

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

      I know it has been 5 months, but just in case you are curious, you could try.
      IWebElement element = driver.FindElement(By.CssSelector(".result-content"));
      string valueAriaLabel = element.GetAttribute("aria-label");
      This trys to select the element by using the class result-content. You could also use XPath. And then you just use element.GetAttribute("aria-label") to get the content you need, in this case it would be
      "Substance Result: 61-68-7, Mefenamic acid"

  • @user-my1by1nz1w
    @user-my1by1nz1w 10 месяцев назад

    awsome

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

    no salio

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

    Thank you so much