No commit activity in last 3 years
No release in over 3 years
This gem is under development. Generates a Liveblog indexed file in JSON format as well as Polyrex format.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.2.3, ~> 0.2
>= 0.1.1, ~> 0.1
 Project Readme

Introducing the liveblog-indexer gem

require 'liveblog-indexer'

lbi = LiveBlogIndexer.new filepath: '/tmp', \
                word_index: 'words_indexed.json', url_index: 'indexed.json'
lbi.crawl 'https://www.jamesrobertson.eu/liveblog/2015/nov/13/formatted.xml'

This gem can not only index a single liveblog page it can crawl over all Liveblog pages. It does this by reading each formatted.xml which contains a link to the previous page. Within a page, it scans each section for words to index, while ignoring specific HTML elements including pre, code, and time.

Note: There are 2 files which are saved in JSON format, those are words_indexed.json and urls_indexed.json. The filepath and the filenames can be set at initialize().

Resources

liveblog indexer indexed search