Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Hi all,
Hope to seek help from you guys! I want to scrap the username from a forum, but I couldn't figure out the method. The following is part of the code:
Part1
<td class="alt2" title="reply: 11,view: 1,097">
<div class="smallfont" style="text-align:right; white-space:nowrap">
2017-03-28 <span class="time">23:44</span><br>
<a href="member.php?find=lastposter&t=1907777" rel="nofollow">username</a> <a href="showthread.php?p=9575713#post9575713"><img class="inlineimg" src="http://s.bbkz.net/forum/images/..." alt="last" title="last" border="0"></a>
</div>
</td>
Part2
<div class="smallfont">
<span style="cursor:pointer" onclick="window.open('member.php?u=353562', '_self')">username</span>
</div>
Also, the format for forum link is this: http://example.com/forum/...
I want to scrap the 'username' from these codes on different pages, may I have your help?
Thanks a lot!!
undefined