Click here to Skip to main content
15,896,441 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
We have a site like www.test.com.We want to display inside this site part of the information of another site like www.exp.com which is inside two div. One of the divs has an ID but one of the divs has no ID!

Thank you if someone can guide me in this regard.

What I have tried:

Nothing has been tried. General guidance with examples is needed.
Posted
Updated 6-Dec-19 7:29am
Comments
David_Wimbley 6-Dec-19 13:20pm    
Use xpath to target specific id. Given test.com is your site...add an ID to the div with no ID.

1 solution

1. Get permission from destination site.
2. Add routine to your site
2a Use HttpClient to request / receive desired page
2b Use HtmlAgilityPack to parse the page and select what you want
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900