-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
77 lines (48 loc) · 2.29 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
FEED2DIASP(1) User Contributed Perl Documentation FEED2DIASP(1)
NNAAMMEE
feed2diasp.pl : Get a feed and squish it into diaspora.
VVEERRSSIIOONN
0.1
SSYYNNOOPPSSIISS
Edit feed2diasp.json to set up your account details then just:
$ feed2diasp.pl
You probably want to run this as a cronjob
DDEESSCCRRIIPPTTIIOONN
Install by untarring with
$ tar xvzf feed2diasp.tar.gz
Then
$ cd feed2diasp
You'll need to make sure you have Perl 5.10.0 and the CPAN
dependencies.
$ sudo cpan XML::Feed Readonly HTML::Strip Data::Dumper WWW::Mechanize
Then copy the example config file and edit it to something more to your
taste.
$ cp feed2diasp.json.example feed2diasp.json
You should make feed2diasp.pl executable wiith
$ chmod 750 feed2diasp.pl
Finally you can start updating your feed with
$ ./feed2diasp.pl
You may want to put that in a cron job.
OOPPTTIIOONNSS
All options are set in feed2yaml.json . I used JSON rather than YAML to
reduce dependencies
RREEQQUUIIRREEMMEENNTTSS
Perl 5.10.0 Data::Dumper JSON XML::Feed WWW::Mechanize HTML::Strip
Readonly
CCOOPPYYRRIIGGHHTT AANNDD LLIICCEENNCCEE
Copyright (C)2011 Charlie Harvey
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version
2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the GNU General Public License for more
details.
You should have received a copy of the GNU General Public
License along with this program; if not, write to the Free
Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
Also available on line: http://www.gnu.org/copyleft/gpl.html
perl v5.10.1 2011-12-03 FEED2DIASP(1)