vemomedia 7 Posted September 21, 2016 Report Share Posted September 21, 2016 so i am having a bit of trouble, i used edit pad to find the regex and i got the code down pretty tight, but when i try to make a proxy list - for some reason the $find regular expressions is not working. The strange part is i had it working before but i must of done something wrong. So far the code goes to hidemyass and scraps the 1st page then loads then into a table, coloumn1 ips : column2 ports I used the scrap attribute to scrape the ips successfully, but when i tried to do the same with the ports i couldnt so i used regex but for some reason the data isnt being collected. Any ideas where i am going wrong? navigate("http://proxylist.hidemyass.com/","Wait")wait for browser event("DOM Ready","")focus(<id="proxy-list-upd-btn">)click(<id="proxy-list-upd-btn">,"Left Click","No")wait(3)set(#webdata,$document text,"Global")add list to list(%port,$find regular expression($document text,"(?<=<td>\\n\\s*)\\d*(?=\\s*</td>)"),"Don\'t Delete","Global")add list to list(%ips,$scrape attribute(<after=w"*.*.*.*">,"innertext"),"Delete","Global")add list to table as column(&proxies,0,0,%ips)add list to table as column(&proxies,0,1,%port) Quote Link to post Share on other sites
pash 504 Posted September 21, 2016 Report Share Posted September 21, 2016 hop this help you more easy. set(#webdata,$scrape attribute($element offset(<class="row inner">,0),"innertext"),"Global") Quote Link to post Share on other sites
vemomedia 7 Posted September 21, 2016 Author Report Share Posted September 21, 2016 how did you get this?(<class="row inner">,0), Quote Link to post Share on other sites
vemomedia 7 Posted September 21, 2016 Author Report Share Posted September 21, 2016 wait, did this just scrap the entire table? Quote Link to post Share on other sites
vemomedia 7 Posted September 23, 2016 Author Report Share Posted September 23, 2016 Still need help with this Quote Link to post Share on other sites
pash 504 Posted September 24, 2016 Report Share Posted September 24, 2016 how did you get this?(<class="row inner">,0),???the basic ubot element inspector. Quote Link to post Share on other sites
vemomedia 7 Posted September 26, 2016 Author Report Share Posted September 26, 2016 oh i see!, you scrapped the entire table. I was only trying to scrap the ports Quote Link to post Share on other sites
vemomedia 7 Posted September 27, 2016 Author Report Share Posted September 27, 2016 i ended up using regex builder, the reason it wasnt working was because i wasnt scraping the whitespace in the code <td>.\d+.<\t> this found all of the ports, before i had <td> \d* <\td> Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.