Jump to content
UBot Underground

Recommended Posts

Hey guys i seem to hit a snag i have been working straight for 4 hours on something and now a friend of my wanted me to incorporate something different to help him sadly my brain is half dead and i need your help:

 

I am on this page:

 

http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Dcomputers&field-keywords=computers

 

What i am trying to do is download all HREF-s Direct links to Products Listed you know like:

 

http://www.amazon.com/ProBox-E3-1246-Business-Server-Computer/dp/B00ZZE7ZDG/ref=sr_1_1?s=pc&ie=UTF8&qid=1441063305&sr=1-1&keywords=computers&pebp=1441066618673&perid=0CVF21KC7N887RYXE9JQ

 

http://www.amazon.com/gp/offer-listing/B001CGHH98/ref=sr_1_4_olp?s=pc&ie=UTF8&qid=1441063305&sr=1-4&keywords=computers&condition=used

 

If anyone can help please do i am stuck on this one!

Link to post
Share on other sites

Get ASIN = Get URL

sample asin to url

navigate("http://www.amazon.com/dp/B00ZZE7ZDG","Wait")
navigate("http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Dcomputers&field-keywords=computers","Wait")
set(#html,$scrape attribute(<id="atfResults">,"innerhtml"),"Global")
add list to list(%asin,$find regular expression(#html,"(?<=data-asin=\").*?(?=\")"),"Delete","Global")

 

  • Like 1
Link to post
Share on other sites

 

Get ASIN = Get URL

sample asin to url

navigate("http://www.amazon.com/dp/B00ZZE7ZDG","Wait")
navigate("http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Dcomputers&field-keywords=computers","Wait")
set(#html,$scrape attribute(<id="atfResults">,"innerhtml"),"Global")
add list to list(%asin,$find regular expression(#html,"(?<=data-asin=\").*?(?=\")"),"Delete","Global")

You are a genius,i actually realized just how tired i was when i saw your simple solution when i woke up this morning.

 

Thanks Pash!

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...