spa3212 1 Posted December 2, 2018 Report Share Posted December 2, 2018 I want to scrape dates from a webpage, like https://www.etsy.com/shop/GreatLifeTees/reviews under review there is date of review posted, I want to scrape the name and date, I could scrape name but not date can someone plz let me know how this can be done.. Thanks please let me know any regex code or other way.. Many thanks in advance Quote Link to post Share on other sites
HelloInsomnia 1103 Posted December 2, 2018 Report Share Posted December 2, 2018 In this case you could just do this: set(#firstReviewer,$scrape attribute($element offset(<class="shop2-review-attribution">,0),"innertext"),"Global") add list to list(%reviewerSplit,$list from text(#firstReviewer," on "),"Delete","Global") But if you grab the whole thing and want the date you could also use this regex: set(#date,$find regular expression(#firstReviewer,"[A-Z][a-z]+\\s\\d+,\\s20[0-9]+"),"Global") 2 Quote Link to post Share on other sites
spa3212 1 Posted December 10, 2018 Author Report Share Posted December 10, 2018 Thanks this was really helpful..Thanks again.. Quote Link to post Share on other sites
spa3212 1 Posted December 11, 2018 Author Report Share Posted December 11, 2018 (edited) OH, this works only once but now its not working regex..plz help.. Edited December 11, 2018 by spa3212 Quote Link to post Share on other sites
HelloInsomnia 1103 Posted December 11, 2018 Report Share Posted December 11, 2018 OH, this works only once but now its not working regex..plz help.. It grabs the first offset so you can increment the offset to grab more. 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.