Don't ask to ask, just ask | |
PerlMonks |
Re: Question regarding web scrapingby Corion (Patriarch) |
on Oct 22, 2016 at 14:39 UTC ( [id://1174512]=note: print w/replies, xml ) | Need Help?? |
The following is a malformed regular expression:
It is at least missing the s/ start. Personally, I suggest that you do the content extraction by using HTML::TreeBuilder and XPath or CSS selectors (via HTML::TreeBuilder::XPath and HTML::Selector::CSS). Also note that Reddit has an API available, so you maybe don't need to scrape at all but can get the comments in a machine readable format directly. Also note that on CPAN, there are many Reddit modules available, and it seems that Reddit::Client is using the Reddit API.
In Section
Seekers of Perl Wisdom
|
|