Introduction
Introduction Statistics Contact Development Disclaimer Help
initial video extract support - tscrape - twitter scraper
git clone git://git.codemadness.org/tscrape
Log
Files
Refs
README
LICENSE
---
commit c94c9c1f8d1ac27670bbd0faf5481e544af50e25
parent 30a8b7252f74e21ba76ca08d00ffc294abad302f
Author: Hiltjo Posthuma <[email protected]>
Date: Fri, 25 Aug 2017 17:36:14 +0200
initial video extract support
Diffstat:
M tscrape.c | 7 +++++++
1 file changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/tscrape.c b/tscrape.c
@@ -183,6 +183,13 @@ xmlattr(XMLParser *x, const char *t, size_t tl, const char…
strlcat(text, " ", sizeof(text));
strlcat(text, v, sizeof(text));
}
+
+ /* indication it has a video */
+ if (itemid[0] && !strcmp(a, "data-playable-media-url")) {
+ strlcat(text, " ", sizeof(text));
+ strlcat(text, "https://twitter.com/i/videos/", sizeof(…
+ strlcat(text, itemid, 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.