I want to search if there is /[some names]/unfollow in a webpage. And I have very little experience on regular expressions. This is what I worked for now.
import urllib
import re
page = urllib.urlopen('http://www.domain.com').read()
results = re.findall('/[\w]*/unfollow', page)
for i in results:
print i
But the code above not printing anything. Am I doing it wrong? If so, I really need help from you guys
Thanks
/unfollow. In some cases, I have to go through 480 webpages usingwhileloop. I think that's time consuming. Is using beautifulsoup making it more time efficient?