solstudioim 4 Posted December 2, 2014 Report Share Posted December 2, 2014 Hi Fellow Ubot experts, Please assist me. I am trying to scrape the Name value, Address value etc from the below HTML. There is no attribute that contains these values: <strong>NAME:</strong> The Birdcage<br> <strong>IT'S:</strong> A reclaimed 18 Century pub on Columbia Road<br> <strong>OPENED:</strong> December 1st 2014<br> <strong>WHO'S BEHIND IT:</strong> Max Chater of Bump Caves and the Draft House group<br> <strong>DID YOU KNOW:</strong> Neon signage will light a daily 'cage' of craft beers on offer behind the bar<br><strong>LOCATION:</strong> Columbia Road, Shoreditch<br> <strong>ADDRESS:</strong> 80 Columbia Road, Bethnal Green, E2 7QB London<br><strong>CLOSEST TUBE:</strong> Bethnal Green<br><strong>OPENING TIMES:</strong> Mon - Fri: 5pm-midnight, Sat: midday-1am, Sun: Sun: 9am-10.30pm<br> <strong>WEBSITE:</strong> <a target="_blank" href="http://drafthouse.co.uk/">www.drafthouse.co.uk</a><br><strong>CONTACT:</strong> @BirdcageTony<br><strong> It is on this page http://www.justopenedlondon.com/the-birdcage/ I tried with $page scrape something like Text on Left Side <Strong>NAME:</strong>, then Text On Right Side <br> to scrape "The Birdcage" but it yields duplicated entry into one item as per below attached picture. Please advise the solution... 1 Quote Link to post Share on other sites
solstudioim 4 Posted December 2, 2014 Author Report Share Posted December 2, 2014 Hi Fellow Ubot Experts, I'd appreciate for any feedback please ThanksSol Quote Link to post Share on other sites
Bill 7 Posted December 2, 2014 Report Share Posted December 2, 2014 This works for me (?<=NAME\:\<\/strong\>).*?(?=\<br\>)(?<=ADDRESS\:\<\/strong\>\ ).*?(?=\<br\>) Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted December 2, 2014 Report Share Posted December 2, 2014 Try this set(#h,$scrape attribute(<id="facts">,"innertext"),"Global") Quote Link to post Share on other sites
solstudioim 4 Posted December 6, 2014 Author Report Share Posted December 6, 2014 Thanks for all the feedback now I have solved it! 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.