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

Поділитися
Вставка
  • Опубліковано 21 лют 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

КОМЕНТАРІ • 26

  • @tomlopez599
    @tomlopez599 Рік тому +5

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

  • @neilfosteronly
    @neilfosteronly Рік тому +1

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

  • @herozero777
    @herozero777 8 місяців тому +2

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

  • @PolarGenre
    @PolarGenre Рік тому +2

    Learning a lot from your vids. Thanks!

  • @eliasmedia
    @eliasmedia Місяць тому

    Super simple scraper example. Love it! Very helpful.

  • @angeldepaz6407
    @angeldepaz6407 Рік тому +2

    Awesome tutorial brother 🤝

  • @muhammadasimsabir8526
    @muhammadasimsabir8526 5 місяців тому

    Quick and easy, thanks

  • @AnwerMehmood
    @AnwerMehmood 8 місяців тому

    Superb and informative with very nice explaination.

  • @randyadames2472
    @randyadames2472 Рік тому

    Nice video bro!

  • @abdelkiki
    @abdelkiki 7 місяців тому

    Thank you so much

  • @zajac4817
    @zajac4817 2 місяці тому

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

  • @pavelpanashchuk292
    @pavelpanashchuk292 2 місяці тому +1

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

  • @user-my1by1nz1w
    @user-my1by1nz1w 9 місяців тому

    awsome

  • @A.B.SEA.123
    @A.B.SEA.123 Рік тому +1

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

  • @user-rk4jq3ex9v
    @user-rk4jq3ex9v 6 місяців тому

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

  • @noahbennett8074
    @noahbennett8074 3 місяці тому

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

  • @yoanadimitrova8760
    @yoanadimitrova8760 Місяць тому

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

  • @MrFreddess
    @MrFreddess 9 місяців тому +2

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

    • @DivanProdOfficial
      @DivanProdOfficial 8 місяців тому

      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)

  • @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 8 місяців тому

      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 Місяць тому

    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 5 місяців тому

    no salio

  • @abdelkiki
    @abdelkiki 6 місяців тому

    Thank you so much