Varo 28 Posted October 5, 2013 Report Share Posted October 5, 2013 Hi, I tried to extract every link on facebook fanpage that meet my criteria but still no luck. When we open facebook fanpage (example: https://www.facebook.com/UFC), we will found link url like: x people like thisxx people like this and so on until xxx.xxx people like this. How do i extract every link that contain word "xxx people" in it. Do i need to learn regex ? Thanks, and sorry for my bad english. Picture: http://i.imgur.com/rdEq7YV.jpg Quote Link to post Share on other sites
UBotDev 276 Posted October 5, 2013 Report Share Posted October 5, 2013 Have you tried with wildcards? Example: set(#URL, $scrape attribute(<innertext=w"* people">, "fullhref"), "Global") Else I think your best bet is REGEX. 1 Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted October 5, 2013 Report Share Posted October 5, 2013 You can use scrape attribute to scrape those link into a list. 1 Quote Link to post Share on other sites
Varo 28 Posted October 5, 2013 Author Report Share Posted October 5, 2013 Thanks a lot. It worked add list to list(%scraped, $scrape attribute(<innertext=w"* people">, "fullhref"), "Delete", "Global") Have you tried with wildcards? Example: set(#URL, $scrape attribute(<innertext=w"* people">, "fullhref"), "Global") Else I think your best bet is REGEX. 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.