m13ur13
Newbie
- Dec 24, 2021
- 5
- 6
I thought I would leave this for anyone who might need it. I wasn't having regular success pulling articles from EzineArticles using SB Article Scraper Prem. So I thought I would try finding URLs for WP posts and scrape that way. But, the problem was finding the right markers because all sites can use different elements. I did find a very useful regex to target the content in the entry-content div. I've posted the regex here. So far I'm able to scrape all the URLs I've used.
<(\w+)\s[^>]*class=\"entry-content\"[^>]*>[\s\S]*\1>
<(\w+)\s[^>]*class=\"entry-content\"[^>]*>[\s\S]*\1>