sir i want to get first 10 links of google search page by c# how can i copy top 10 URL of google search in text file using c#

hey, It is possible using jQuery-
write in <script> tag

a[href^=http:\\]

it will gives you all links from that page. It is just a regular expression.' ^' means starting of any link from http:\\. you can also access any type of link like PDF files etc.

a[href$=.pdf]

to use jQuery , you need to download script file and reference it within your application .
you will find out more details here-

www.jquery.com

Hope this will help!!:)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.