How do I extract all the external links of a web page and save them to a file?
If you have any command line tools that would be great.
|
How do I extract all the external links of a web page and save them to a file? If you have any command line tools that would be great. | ||||
|
feedback
|
|
You will need 2 tools, lynx and awk, try this:
If you need numbering lines, use command nl, try this:
| |||
|
feedback
|
I would recommend Beautiful Soup over screen scraping techniques. | |||
|
feedback
|