Jump to content
UBot Underground

Trying To Scrape The Categories Of Dollartree.com And Its A Beast. Please Help


Recommended Posts

Hi Guys,

 

I am a relative newbie so a little green sorry.

 

But dollartree is a beast to scrape.  

 

The categories are not showing up clearly and are covered with javascript or something.

 

Can anybody help me to see what I should be doing to get the category links.

 

2 hours and still no success.

 

Thanks,

 

Kris

Link to post
Share on other sites

navigate("https://www.dollartree.com/household/500/index.cat","Wait")
clear list(%CategoryScrape)
add list to list(%CategoryScrape,$scrape attribute(<class="">,"innertext"),"Delete","Global")

 

 

Basically like this.  I am trying to get the categories on the left side.

 

Thanks,

 

Kris

Link to post
Share on other sites

Is this what your after?

 

navigate("https://www.dollartree.com/household/500/index.cat","Wait")
wait for browser event("Everything Loaded","")
clear list(%CategoryTitle)
clear list(%CategoryUrl)
add list to list(%CategoryTitle,$find regular expression($replace($scrape attribute(<id="left_nav_data">,"outerhtml"),"&",$nothing),"(?<=\\\"\\>).*?(?=\\<\\/a\\>)"),"Don\'t Delete","Global")
add list to list(%CategoryUrl,$find regular expression($scrape attribute(<id="left_nav_data">,"outerhtml"),"(?<=href\\=\\\"\\/).*?(?=\\\"\\>)"),"Delete","Global")

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...