HarvestMan is a modular, extensible and flexible web crawler program cum framework written in pure Python. HarvestMan can be used to download files from websites according to a number of customized rules and constraints. It can be used to find information from websites matching keywords or regular expressions.
The final goal of the project is to develop a full-fledged semantic personal data mining platform which can be used to retrieve information from the Internet in a highly customizable manner, so that one can fetch information from the web the way he wants it, when he wants it. For this, HarvestMan project will provide support for Web 2.0 and 3.0 technologies such as RSS, RDF, OWL etc. (这个目标还真是大啊,要是真的可以做到那就真是牛逼。)
This project aims to develop an efficient rule based extractor of entries of references, located in scientific articles in English language. The application takes a pdf file or a directory of pdf and then returns an html file, containing the list of all entries with their respective title. Moreover the title of the article cited is searched through Google Web Service to get the URL that identifying the article on the web. If the URL provides on the page a Bibtex entry, this will appear in the html output under the relative entries, stolen from some typical site like citeseer, ieeexlpore etc. The application does not make search over pdf file based on images.
Result
ImplementationPdfminer tool, a pure python lib to manage pdf; instead to query Google Web Service it uses Python SoapPy. This project is born into the course of "Data Base II and Information Retreival" of Master Computer Science at the University of Florence from two engineers. The project is released under the GNU General Public License.
In this way, the best result will be the html files with all entries with their rispective title linked to the URI and below the Bibtex entry. See example below.
The tool is implemented through python scripting and created to run on GNU/Linux. It uses as backend
UsageExamples of UsageExamples of OutputThe article in pdf text format
user@machine:~$ pdftoref --help
Usage:
-h --help This help Command
-f filepath --file=filepath Run on a file
-d directory --dir=directory Run into a directory
-u --url Get the title url
-b --bibtex Get the bibtex article
PdftoRef> Running on the file: /home/lizardking/path/to/file.pdf
* Extracting the text from pdf [Done]
* Extracting the entries and titles [Done]
* Querying Google and writing down html file [Done]
PdftoRef> Finished file: /home/lizardking/path/to/file.pdf