Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

756.Text file parser -- How to extract all specific links from webpage?

User: bruce lee -- 2011-04-01          << 755  757 >>
Hits: 603
Type: Text file parser   
Search all Text file parser examples
Description:
how to extract all specific links from webpage?
Input Sample:
eg,there are many links in a webpage
http://www.51.la/?3550778
http://member/reg.asp
http://buyers-list.asp?=4
http://buyers-list.asp?=5
http://buyers-list.asp?=6
Output Sample:
http://buyers-list.asp?=4
http://buyers-list.asp?=5
http://buyers-list.asp?=6
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
You need to use Regular Expression to describe what kind of links you need to extract, for this example, the Regexp is:


Steps:
1. ctrl-o open downloaded webpage file.
Note: if you want to open webpage directly, select "File->Load->WWW Page" menu, input URL and set "Type" to "Html", click "ok".
2. ctrl-h open 'replace' window
* set 'search for pattern' to:

* set 'replace with pattern' to:

* uncheck 'print unmatched unit' option
3. click 'replace', all required link will be extracted.

Screenshot 1:  Replace_Window


Similar Examples:
How to extract all links from a web page?   (82%)
How to extract all specified links from a html file? (78%)
How to extract all the links and images from many web page files? (68%)
How to extract all <IMG> pictures addresses from a webpage? (67%)
How to extract all image links from a html file? (66%)
How to batch extract specified lines from a text file? (66%)
How to extract all emails from many webs with depth 2? (63%)
How to extract email addresses from multiple webpages? (63%)

Check Demo of Text file parser
Keywords:
how to extract all specific links from  regex  regexp  asp  what  specific  url  extracte  webpage  webp  extract specific  extract specific links from webpage  extract specific link from file  extract specific links  describe search and replace  how to extract links from webpage to  replace with specific  extract webpage