【问题标题】:how to scrape twitter for a whole country using twint library如何使用 twint 库为整个国家/地区抓取 twitter
【发布时间】:2021-06-28 00:48:06
【问题描述】:

您好,我想问一个关于使用 Twint 库从 Twitter 上抓取推文的问题

基本上,要从特定位置抓取推文,需要放置由“纬度、经度、半径”组成的地理编码数据

所以我的问题是如何抓取整个印度尼西亚的推文? 如果我需要使用地理编码,那么坐标将为coor_ind = '4.2105, 101.9758, radius(km) 如何确定覆盖整个印度尼西亚的半径?

【问题讨论】:

  • 仅供参考,它是 scrape(和 scrapingscrapedscraper)而不是 scrap

标签: python geocode twint


【解决方案1】:

首先,您可能不会收到每条推文 - 因为有些推文上可能没有位置。

但您可以将c.near 用于印度尼西亚的城市。

this Medium article 上提供了一个示例。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-06-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多