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

Sdílet
Vložit
  • čas přidán 21. 02. 2023
  • 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/ShaunHalverson/C-W...
    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

Komentáře • 26

  • @eliasmedia
    @eliasmedia Před měsícem

    Super simple scraper example. Love it! Very helpful.

  • @tomlopez599
    @tomlopez599 Před rokem +5

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

  • @neilfosteronly
    @neilfosteronly Před rokem +1

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

  • @herozero777
    @herozero777 Před 8 měsíci +2

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

  • @PolarGenre
    @PolarGenre Před rokem +2

    Learning a lot from your vids. Thanks!

  • @angeldepaz6407
    @angeldepaz6407 Před rokem +2

    Awesome tutorial brother 🤝

  • @muhammadasimsabir8526
    @muhammadasimsabir8526 Před 5 měsíci

    Quick and easy, thanks

  • @AnwerMehmood
    @AnwerMehmood Před 8 měsíci

    Superb and informative with very nice explaination.

  • @randyadames2472
    @randyadames2472 Před rokem

    Nice video bro!

  • @abdelkiki
    @abdelkiki Před 7 měsíci

    Thank you so much

  • @pavelpanashchuk292
    @pavelpanashchuk292 Před 2 měsíci +1

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

  • @user-my1by1nz1w
    @user-my1by1nz1w Před 9 měsíci

    awsome

  • @A.B.SEA.123
    @A.B.SEA.123 Před rokem +1

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

  • @zajac4817
    @zajac4817 Před 2 měsíci

    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!!!

  • @noahbennett8074
    @noahbennett8074 Před 3 měsíci

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

  • @user-rk4jq3ex9v
    @user-rk4jq3ex9v Před 6 měsíci

    hey man can you please help me with a code that can screen scrape videos time that i'm watching?

  • @yoanadimitrova8760
    @yoanadimitrova8760 Před měsícem

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

  • @MrFreddess
    @MrFreddess Před 9 měsíci +2

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

    • @DivanProdOfficial
      @DivanProdOfficial Před 8 měsíci

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

    • @IslamTheRightWay10
      @IslamTheRightWay10 Před 8 měsíci

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

  • @user-mv9ul9tz1c
    @user-mv9ul9tz1c Před rokem +1

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

    • @lebundon
      @lebundon Před 8 měsíci

      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"

  • @001KW9
    @001KW9 Před 2 měsíci

    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']

  • @jonathanalanis2092
    @jonathanalanis2092 Před 5 měsíci

    no salio

  • @abdelkiki
    @abdelkiki Před 6 měsíci

    Thank you so much