dahid84 5 Posted June 13, 2017 Report Share Posted June 13, 2017 (edited) Can you help me ? i have no idea how to scrape url only from txt or www example tp://allegro.pl/zbiorniczek-wyrownawczy-renault-scenic-ii-1-9-dci-i6849933633.html">ZBIORNICZEK WYROWNAWCZY RENAULT SCENIC II 1.9 DCI</a></h2><div class="bec3e46"><dl><dt class="b44fe91"><span>Stan</span></dt><dd><span>Używany</span></dd></dl></div><div class="_7765cc3 "><div class="ae47445 "><span class="d881929"><span class="e82f23a"><!-- react-text: 1302 -->4<!-- /react-text --><span>,</span><span>00</span><!-- react-text: 1305 --> zł<!-- /react-text --></span></span></div><span class="_08a4344 _0b616fa">kup teraz</span><!-- react-empty: 1307 --><!-- react-empty: 1308 --><div class="_1245c7d "><div class="_7b041d2 "><span class="cba8e24"><span class="e4865f5"><span><strong>19,00 zł</strong> z dostawą</span></span></span></div></div></div><div class="_13405e3"><span class="d30a778"></span></div><!-- react-empty: 1316 --></div></div></div></article><article class="fa72b28 "><div><div class="_7cab484 "><div class="ca5b3a9 _9794b96"><a href="http://allegro.pl/zbiorniczek-wyrownawczy-2-2hdi-citroen-c5-i6854155399.htmlhttp://allegro.pl/zbiorniczek-wyrownawczy-2-2hdi-citroen-c5-i6854155399.html">ZBIORNICZEKWYRÓWNAWCZY 2.2HDI CITROEN C5</a></h2><div class="bec3e46"><dl><dt class="b44fe91"><span>Stan</span></dt><dd><span>Używany</span></dd></dl></div><div class="_7765cc3 "><div class="ae47445 "><span class="d881929"><span class="e82f23a"><!-- react-text: 1338 -->4<!-- /react-text --><span>,</span><span>00</span><!-- react-text: 1341 --> zł<!-- /react-text --></span></span></div><span class="_08a4344 _0b616fa">kup teraz</span><!-- react-empty: 1343 --><!-- react-empty: 1344 --><div class="_1245c7d "><div class="_7b041d2 "><span class="cba8e24"><span class="e4865f5"><span><strong>19,00 zł</strong> z dostawą</span></span></span></div></div></div><div class="_13405e3"><span class="d30a778"></span></div><!-- react-empty: 1352 --></div></div></div></article><article class="fa72b28 "><div><div class="_7cab484 "><div class="ca5b3a9 _9794b96"><a href="http://allegro.pl/vw-golf-iii-vento-1-9tdi-przewod-wody-od-nagrz-i5066149185.html i need only url start from http://allegro.pland finish .html or maybe you know how to scrape easy url from this pagehttps://allegro.pl/kategoria/czesci-samochodowe-620?order=d&state=3&buyUsed=1i need all url from this www i try to use this comend but dosent work correctly set(#url,$page scrape("<a href=\"","\" "),"Global") Edited June 13, 2017 by dahid84 Quote Link to post Share on other sites
HelloInsomnia 1103 Posted June 14, 2017 Report Share Posted June 14, 2017 Try find regular expression and use this: http:\/\/allegro\.pl.*?\.html Quote Link to post Share on other sites
fastlinks 16 Posted February 21, 2019 Report Share Posted February 21, 2019 this regex can get most of the url (?:https?:\/\/)?(?:[\w]+\.)([a-zA-Z\.]{2,6})([\/\w\.-]*)*\/? 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.