Use extended_entities instead of entities - tscrape - twitter scraper
 (HTM) git clone git://git.codemadness.org/tscrape
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit d270b9dc10bc3d05b096f2dd34256dc9b962b951
 (DIR) parent e2c4c24378d937edd6f9d717267d9f08b268df78
 (HTM) Author: Leonardo Taccari <iamleot@gmail.com>
       Date:   Sat,  6 Jun 2020 01:40:36 +0200
       
       Use extended_entities instead of entities
       
       Possible medias could be omitted in entities but present in
       extended_entities.
       
       Diffstat:
         M tscrape.c                           |       4 ++--
       
       1 file changed, 2 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/tscrape.c b/tscrape.c
       @@ -374,7 +374,7 @@ processnodes(struct json_node *nodes, size_t depth, const char *str)
                        }
                }
        
       -        /* [].entities.media[].url */
       +        /* [].extended_entities.media[].url */
                if (depth == 6 &&
                    nodes[0].type == JSON_TYPE_ARRAY &&
                    nodes[1].type == JSON_TYPE_OBJECT &&
       @@ -382,7 +382,7 @@ processnodes(struct json_node *nodes, size_t depth, const char *str)
                    nodes[3].type == JSON_TYPE_ARRAY &&
                    nodes[4].type == JSON_TYPE_OBJECT &&
                    nodes[5].type == JSON_TYPE_STRING &&
       -            !strcmp(nodes[2].name, "entities") &&
       +            !strcmp(nodes[2].name, "extended_entities") &&
                    !strcmp(nodes[3].name, "media")) {
                        if (!strcmp(nodes[5].name, "url")) {
        //                        printf("DEBUG: url: %s\n", str);