Introduction
Introduction Statistics Contact Development Disclaimer Help
Use extended_entities instead of entities - tscrape - twitter scraper
git clone git://git.codemadness.org/tscrape
Log
Files
Refs
README
LICENSE
---
commit d270b9dc10bc3d05b096f2dd34256dc9b962b951
parent e2c4c24378d937edd6f9d717267d9f08b268df78
Author: Leonardo Taccari <[email protected]>
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(-)
---
diff --git a/tscrape.c b/tscrape.c
@@ -374,7 +374,7 @@ processnodes(struct json_node *nodes, size_t depth, const c…
}
}
- /* [].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 c…
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);
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.