This is a very common problem for the beginners who try to write web crawler / spider / scraper. The content is fetched but regex is not working right. :( But the problem is not with the regular expression. You just need to add the following two lines after you fetch content of a web page: content = content.replace("\n", "") content = content.replace("\r", "") Now the regex should work if everything else is ok! Read the full article
Comments (0)
Add Your Comment
Please Enter your Email ID,
to get a new password
Add something
Snip
News
Site
Add Snip
Adding a Snip...
Now you can import your favorite sites to your socialmedian page
Loading...
Loading...
Is this you?
Stats
Mood
0%
Like
0%
Dislike
Share this story
Network
Email
Tweet
Share with the News Network
Email ID's
(multiple Email ID's separated by commas)
Message
Also post this message as a public comment
Don't worry. We won't share the name or email address of the person that you sent the story to.