Introduction
Introduction Statistics Contact Development Disclaimer Help
fix data-image-url - tscrape - twitter scraper
git clone git://git.codemadness.org/tscrape
Log
Files
Refs
README
LICENSE
---
commit 30a8b7252f74e21ba76ca08d00ffc294abad302f
parent 74421a0dd39d2f3cd496ab9e9efcf38e2fef594e
Author: Hiltjo Posthuma <[email protected]>
Date: Fri, 25 Aug 2017 16:37:55 +0200
fix data-image-url
Diffstat:
M tscrape.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/tscrape.c b/tscrape.c
@@ -177,7 +177,9 @@ xmlattr(XMLParser *x, const char *t, size_t tl, const char …
} else if (!strcmp(t, "span") && !strcmp(a, "data-time")) {
/* UNIX timestamp */
strlcpy(datatime, v, sizeof(datatime));
- } else if (!strcmp(a, "data-image-url")) {
+ }
+ /* NOTE: can be <div data-image-url>. */
+ if (!strcmp(a, "data-image-url")) {
strlcat(text, " ", sizeof(text));
strlcat(text, v, sizeof(text));
}
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.