Guest User

Untitled

a guest
Oct 21st, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. try
  2. {
  3. if (x == 1)
  4. {
  5. Url = "https://www.**********.com/" + arama;
  6. }
  7. else
  8. {
  9. Url = "https://www.**********.com/" + arama + "?pagingOffset=" + y;
  10. }
  11.  
  12. doc = web.Load(Url);
  13. liste = doc.DocumentNode.SelectNodes("//*[@id="searchResultsTable"]/tbody/tr[" + i + "]/td[1]/a")[0].Attributes["href"].Value;
  14. Url = "https://www.**********.com" + liste;
  15. doc = web.Load(Url);
  16. liste = doc.DocumentNode.SelectNodes("//*[@id="classifiedDetail"]/div[1]/div[2]/div[3]/div[1]/div/div[1]/h5")[0].InnerText;
  17. liste2 = doc.DocumentNode.SelectNodes("//*[@id="phoneInfoPart"]/li/span[1]")[0].InnerText;
  18. count++;
  19. liste = liste.ToUpper();
  20. Response.Write(count + " - " + liste + " Tel: " + liste2 + "</br>");
  21. }
  22. catch { }
Add Comment
Please, Sign In to add comment