need fast script to parse html using wget or curl

Avg Bid (USD)
Project Budget (USD)
$30 - $250

Project Description:
The script should;
1- Crawl the webpage given
2- Parse all the urls in page with different regular expressions. (don't have to start with a href or http even)
for example: parse all urls with rar,zip,mp3 etc. extensions. parse all mediafire, rapidshare etc. urls.
3-It should be able to login or load cookies to login to specific webpages such as forums etc. to get the links
4-Must be fast as much as possible and stable :).

it can be shell script, perl, c etc. important part it should be fast and not use much resources. advices about platform or techics welcome.

below is an example which I can do till here, I need so many improvements

wget -q -U "Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv: Gecko/20121223 Ubuntu/[url removed, login to view] (jaunty) Firefox/3.8" [url removed, login to view] -e robots=off -O - | tr "\t\r\n'" ' "' | grep -i -o '"\(ht\|f\)tps\?:[^"]\+\(.gif\|.apk\|.rar\|.mkv\)"' | sed -e 's/^.*"\([^"]\+\)".*$/\1/g' | uniq

thanks in advance

Skills required:
Anything Goes, Engineering, Linux, Shell Script
About the employer:
Public Clarification Board
Bids are hidden by the project creator. Log in as the employer to view bids or to bid on this project.
You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.

$ 225
in 5 days
Hire ebson
$ 30
in 0 days
$ 180
in 5 days
$ 250
in 4 days
Hire asmodej
$ 150
in 4 days
Hire mlambrichs
$ 225
in 3 days
Hire programer22
$ 250
in 10 days
$ 120
in 1 days
Hire nithi87cool
$ 100
in 1 days
Hire coderz1
$ 40
in 2 days