Shokara Kou
6fe3d8dc04
parse date format without timezone
5 months ago
Shokara Kou
85cb78555b
add support for dc:date with sed's help
5 months ago
Shokara Kou
68dd2c064d
add strlcpy compatibility file for non-openbsd
6 months ago
Shokara Kou
6483e52df1
added a sed file to wrap the inside of <content> in a CDATA
6 months ago
Shokara Kou
a0e99d882a
save atom links
6 months ago
Shokara Kou
c8502e9f03
add preliminary atom support
...
<content> doesn't work, but can be fixed by wrapping its data in CDATA.
will need to write an awk or sed file for this
links are also in href instead of part of the tag, so that doesn't work either
6 months ago
Shokara Kou
cfbd4d78ee
save items in a Maildir/
...
rssdl is back in a usable state! (for rss only)
6 months ago
Shokara Kou
bcc61828ad
print in mail format
6 months ago
Shokara Kou
5f0aa201fc
convert date format appropriate for emails
6 months ago
Shokara Kou
611f1b4ff7
replace tmp_fp with item.desc
6 months ago
Shokara Kou
ce0a480458
handle CDATA in <description>
6 months ago
Shokara Kou
3a6e5ebf7e
write <description> to a temporary file instead of using open_memstream(3)
6 months ago
Shokara Kou
ccc35d3aeb
shorten tag checking/comparing with istag() macro
6 months ago
Shokara Kou
186dd048d3
store title, link, and date in struct
6 months ago
Shokara Kou
eb2c59173c
remove old files to prepare for rewrite
6 months ago
Shokara Kou
1310665922
prepare to use codemadness's xmlparser instead of yxml
...
Yet again switching XML parsers. When I tried out xmlparser yesterday,
it was very easy to use so I think it would be easy to switch over to this.
6 months ago
Shokara Kou
2b2af33fec
update manual page
1 year ago
Aoi Koizumi (古泉 あおい)
d8069dbe82
Add manual page
...
Signed-off-by: Aoi Koizumi <novaburst@kalli.st>
1 year ago
Shokara Kou
748b4d4aee
fix typo in Makefile
1 year ago
Shokara Kou
ccf6b130b0
remove TODO list
...
Not needed anymore (for now at least).
1 year ago
Shokara Kou
9d33df4f1e
fix clang warning for including yxml.h
1 year ago
Shokara Kou
1db3810d2d
mention licensing for rssdl and yxml
1 year ago
Shokara Kou
c46d88391e
update README with new usage
1 year ago
Shokara Kou
6dceeb3cf9
go back to old cflags
1 year ago
Shokara Kou
242ec447fa
write article summary/description
1 year ago
Shokara Kou
6c909c0876
only extract atom links with rel alternate
1 year ago
Shokara Kou
7a859d2fe1
save items, but now with yxml :D
1 year ago
Shokara Kou
08a9f8147b
fix rss parsing
1 year ago
Shokara Kou
64667ff29e
parse feed title and item's title, date, and link
...
RSS feed parsing needs to be fixed.
Atom feed items with multiple links (like one for a favicon) also
get parsed and those need to be skipped.
1 year ago
Shokara Kou
1e4e38d84b
add separate CFLAGS for debugging
...
I found out about what -fsanitize does from lurking in libera.chat's #c
1 year ago
Shokara Kou
abd59407aa
read from stdin instead of curl
2 years ago
Shokara Kou
d83d056fd7
remove isatom argument from parse_item()
2 years ago
Shokara Kou
215dddb546
update README
2 years ago
Shokara Kou
16a692f2b8
re-enable command line arguments and usage()
2 years ago
Shokara Kou
eae377dd21
add atom entry link support
2 years ago
Shokara Kou
64564498c3
add wont fix entry for non-CDATA unescaped HTML
2 years ago
Shokara Kou
63f2b6bcc9
split Makefile into having a config.mk for variables
...
a
2 years ago
Shokara Kou
30898d6a69
use open_memstream(3) instead of reinventing the wheel
2 years ago
Shokara Kou
a43fdff052
temp commit
2 years ago
Shokara Kou
b1a30873c7
parse raw data from curl directly
2 years ago
Shokara
16973b2a3c
remove hash table-related files
...
I don't think comparing against a hash table would be a good idea now.
2 years ago
Shokara
6681a17672
rename xml_string functions
2 years ago
Shokara
ad4c59c47e
relicense back under the ISC license
2 years ago
Shokara
9e6c8c25a0
start moving parser from mxml to yxml
...
mxml had a problem (bug?) which ignored a tag's CDATA if that tag
started with whitespace. This caused problems with the items of some
feeds like Dig Deeper's atom feed where items had empty
descriptions/summaries.
Initially, I also tried moving to expat which is a popular xml parser
that is also installed as part of most systems, probably as a
dependency of another program, but it seemed a bit difficult to
include. Meanwhile, yxml is another stream-based xml parser that is
simpler and only includes the bare minimum of what I need, so I'm using
it instead.
libxml2 wasn't considered because I think it's gomblex and very bloated,
even if it was easy to use.
2 years ago
Shokara
209f5f566f
update TODO
2 years ago
Shokara
0619f055a9
assume all feed items are in html instead of plaintext
2 years ago
Shokara
8ff388c8a7
cleanup curl properly
...
Also initialize the time structure in save.c
Now there's basically no errors in valgrind besides the still reachable
errors caused by curl's crypto library! :D
2 years ago
Shokara
cb01a6aa2e
save datetime in RFC 5322 format
...
Some (most or all?) atom feeds don't appear to have their date in the
updated tag in the regular mail format, so clients used to not parse
them correctly.
Also the time structure is now being allocated automatically instead of
manually because it isn't very big.
2 years ago
Shokara
ab52d828a7
set default compiler/standard to C99
...
Unfortunately snprintf is not in C89. snprintf's size argument is also
no longer hardcoded.
2 years ago
Shokara
17be38e5f9
use perfect hash table made by gperf in sax_cb
2 years ago