We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
I m writing a scraper program. I collect all the links on a page. They might be relative paths. For example:
foo.html
/foo.html
../foo.html
../../foo.html
I can concat them to the url of the page (basepath) they are on, but that isn t completely straightforward. For example:
http://www.example.com/foo + /bar.html = http://www.example.com/bar.html
http://www.example.com/bla/?foo=bar + ../foo.html = http://www.example.com/foo.html
我很想知道,是否有埃尔兰·利布、C Lib或CLI方案,能够勾画给我的适当类别?