本文介绍了获取网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我必须从网站上收集一些重定向的网址。我可以使用像这样的get方法获取它们"www.sample/jump.php?list_id = 16531"。并将其重定向到另一个站点。例如,"www.sample/jump" .php?listing_id = 16531" ---> http://www.templateblocks/ 我有大约5000个listing_id。 我想知道我怎么能做一个机器人来获取和保存网址。
i have to collect some redirected urls from a web site. i can obtain them using get method like this "www.sample/jump.php?listing_id=16531".and it redirecting to another site.for example "www.sample/jump.php?listing_id=16531"--->www.templateblocks/i have about 5000 listing_id. i wonder that how can i do a bot to obtain and save urls.
推荐答案System.Net和System.Uri主题应该去这个论坛: forums.msdn.microsoft/en-US/ncl/threads/ -Steve PS试用 HttpWebResponse。 Headers System.Net and System.Uri topics should go to this forum: forums.msdn.microsoft/en-US/ncl/threads/ -SteveP.S. Try out HttpWebResponse.Headers
更多推荐
获取网址
发布评论