Script now auto-creates db file and schema

This commit is contained in:
Brian O'Donnell
2015-04-22 16:21:06 -04:00
parent 73915649c8
commit ab0398dc67
2 changed files with 23 additions and 12 deletions
+2 -7
View File
@@ -3,21 +3,16 @@ Publishes RSS/Atom feeds to Diaspora*
This is a lightweight, customizable "bot" script to harvest RSS/Atom feeds and re-publish them to the Diaspora social network. It is posted here without warranty, for public use.
## Installation
In order to use this script, you must first create a sqlite database, which can be accomplished thusly:
You must have the following perl modules installed:
`$ echo "CREATE TABLE feeds(guid varchar(255) primary key,feed_id varchar(127),title varchar(255),link varchar(255),hashtags varchar(255),timestamp integer(10),posted integer(1));" | sqlite3 feeds.db`
You must also have the following perl modules installed:
- LWP::UserAgent
- URI::Escape
- HTML::Entities
- JSON
- XML::Simple
- DBI
- DBD::SQLite
- Unicode::Normalize
- Getopt::Long