initial video extract support - tscrape - twitter scraper
 (HTM) git clone git://git.codemadness.org/tscrape
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit c94c9c1f8d1ac27670bbd0faf5481e544af50e25
 (DIR) parent 30a8b7252f74e21ba76ca08d00ffc294abad302f
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       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(-)
       ---
 (DIR) diff --git a/tscrape.c b/tscrape.c
       @@ -183,6 +183,13 @@ xmlattr(XMLParser *x, const char *t, size_t tl, const char *a, size_t al,
                                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(text));
       +                        strlcat(text, itemid, sizeof(text));
       +                }
                }
        }