Closed (fixed)
Project:
Feeds
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
17 Nov 2009 at 21:44 UTC
Updated:
6 Aug 2010 at 22:00 UTC
I'd like to see an HTML parser / scraper, (sometimes called a Web to RSS converter). Online services such as Feed43 to something similar, but it would be good to it without a third party service.
These services scan an HTML page for a start string, eg. <h1>News</h1>, then look for the a repeating pattern that represents a title, eg. <h3> * </h3>, then a pattern representing the content, and then a final end string pattern.
See also: Convert Web Pages Content Into RSS Feeds
This feature would allow the data mining of any web page. For reference, the following services look useful (and free):
Comments
Comment #1
iantresman commentedThe PHP Simple HTML DOM Parser looks like a step in the right direction, and includes example of scraping some web sites. Unfortunately I have no idea whether it could be converted to an HTML parser, or used as an HTML to XML converter.
Comment #2
darrenmothersele commentedsubscribe
I'm already looking at using simplehtmldom to do something similar. It would be great to make this work with Feeds.
Comment #3
iantresman commentedThe simplehtmldom API looks interesting, I'll keep a keen eye on it.
Comment #4
alex_b commentedAlso take a look at querypath.
Comment #5
qandeel commentedHey,
I have already developed a module that works great with FeedAPI and it uses simplehtmldom API
Qandeel
Comment #6
iantresman commentedQandeel, what's your module called, and can you include a link to its home page.
Comment #7
qandeel commentedI have not uploaded that on Drupal yet.. but i am planning to upload that as a separate project. Ill let you know once its done.. right now i am busy with my upcoming module "Advance Workflow Management"
Comment #8
twistor commentedI have a parser for Feeds that allows you to input XPath queries that map to fields. I'm actually trying to get CVS access at the moment so that I can post it. Here's a link to my request http://drupal.org/node/835276 you can download the current version. It's still pretty new, but I have been using it with much success.
Comment #9
twistor commentedNow at feeds_xpathparser.
Comment #10
hanno commentedWith the announcement of the feeds_xpathparser set this issue as fixed.
Comment #11
iantresman commentedSounds exciting, I shall look forward to test driving it in due course.