Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Fetch the content of a website

Fetch the content of a website

Scheduled Pinned Locked Moved C#
csharpquestion
9 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Krishna Varadharajan
    wrote on last edited by
    #1

    Hi, How can i fetch the content of a website using c# (windows app). Purpose is to upload in our search engine. Thanx

    krishna

    L P 2 Replies Last reply
    0
    • K Krishna Varadharajan

      Hi, How can i fetch the content of a website using c# (windows app). Purpose is to upload in our search engine. Thanx

      krishna

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      For search engine, you only need to read meta tags. Here is nice video[^] for the same. Also find following links useful. http://www.codeasp.net/blogs/teisenhauer/microsoft-net/170/parse-meta-tags-in-c-sharp[^] HTH

      Jinal Desai - LIVE Experience is mother of sage....

      K P B 3 Replies Last reply
      0
      • L Lost User

        For search engine, you only need to read meta tags. Here is nice video[^] for the same. Also find following links useful. http://www.codeasp.net/blogs/teisenhauer/microsoft-net/170/parse-meta-tags-in-c-sharp[^] HTH

        Jinal Desai - LIVE Experience is mother of sage....

        K Offline
        K Offline
        Krishna Varadharajan
        wrote on last edited by
        #3

        Hi, Thanks for your info. what you said is true, only meta tag is enough... but in some situation we wont get i hope....for example type following tag in google "times of india sports" from that result check the third link "More Sports - Sports - The Times of India" which is the current updation of the website ...... how we can get those current updation results which is not mention in meta-tag. Even i may be wrong clear my doubt pls. Thanks

        krishna

        L 1 Reply Last reply
        0
        • K Krishna Varadharajan

          Hi, Thanks for your info. what you said is true, only meta tag is enough... but in some situation we wont get i hope....for example type following tag in google "times of india sports" from that result check the third link "More Sports - Sports - The Times of India" which is the current updation of the website ...... how we can get those current updation results which is not mention in meta-tag. Even i may be wrong clear my doubt pls. Thanks

          krishna

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          For such situation, I think you need to search html for required information. Once you have complete html of website you can easily search any content within it. For that you need to do "Screen Scraping"[^]. Find following link useful for the same. http://www.codersource.net/microsoft-net/c-advanced/html-screen-scraping-in-c.aspx[^] HTH

          Jinal Desai - LIVE Experience is mother of sage....

          K 1 Reply Last reply
          0
          • L Lost User

            For search engine, you only need to read meta tags. Here is nice video[^] for the same. Also find following links useful. http://www.codeasp.net/blogs/teisenhauer/microsoft-net/170/parse-meta-tags-in-c-sharp[^] HTH

            Jinal Desai - LIVE Experience is mother of sage....

            P Offline
            P Offline
            Pete OHanlon
            wrote on last edited by
            #5

            Errm no you don't. The use of meta tags is nowhere near enough.

            "WPF has many lovers. It's a veritable porn star!" - Josh Smith

            As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

            My blog | My articles | MoXAML PowerToys | Onyx

            1 Reply Last reply
            0
            • K Krishna Varadharajan

              Hi, How can i fetch the content of a website using c# (windows app). Purpose is to upload in our search engine. Thanx

              krishna

              P Offline
              P Offline
              Pete OHanlon
              wrote on last edited by
              #6

              Have a look at this[^] article on a fully featured search engine in C#.

              "WPF has many lovers. It's a veritable porn star!" - Josh Smith

              As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

              My blog | My articles | MoXAML PowerToys | Onyx

              K 1 Reply Last reply
              0
              • L Lost User

                For such situation, I think you need to search html for required information. Once you have complete html of website you can easily search any content within it. For that you need to do "Screen Scraping"[^]. Find following link useful for the same. http://www.codersource.net/microsoft-net/c-advanced/html-screen-scraping-in-c.aspx[^] HTH

                Jinal Desai - LIVE Experience is mother of sage....

                K Offline
                K Offline
                Krishna Varadharajan
                wrote on last edited by
                #7

                Hi, Thank you so much for your information, i will check those links and let u know.... Thanks

                krishna

                1 Reply Last reply
                0
                • P Pete OHanlon

                  Have a look at this[^] article on a fully featured search engine in C#.

                  "WPF has many lovers. It's a veritable porn star!" - Josh Smith

                  As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

                  My blog | My articles | MoXAML PowerToys | Onyx

                  K Offline
                  K Offline
                  Krishna Varadharajan
                  wrote on last edited by
                  #8

                  Wow...thts really cool....thanks alot for your information.

                  krishna

                  1 Reply Last reply
                  0
                  • L Lost User

                    For search engine, you only need to read meta tags. Here is nice video[^] for the same. Also find following links useful. http://www.codeasp.net/blogs/teisenhauer/microsoft-net/170/parse-meta-tags-in-c-sharp[^] HTH

                    Jinal Desai - LIVE Experience is mother of sage....

                    B Offline
                    B Offline
                    Bernhard Hiller
                    wrote on last edited by
                    #9

                    Meta tags often do not tell anything useful about the content of a page, they are often more like spam. I do not use them for such a purpose and nonetheless reach nice Google ranks for my pages.

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups