tweepy_使用tweepy提取和分析与全球变暖相关的推文

tweepy

Whether the global warming phenomenon is occurring or not has always been at the center of public debate for many years. On one side, it is claimed that the earth’s temperature is rising fast and there will be unprecedented natural disasters in the coming days, and on the other side, it is claimed that global warming is just a hoax and no such events will occur. Amidst this, it is interesting to see what the majority of people are talking about global warming in social media and on which side of the debate most of them belong to.

多年来,是否一直在发生全球变暖现象一直是公众争论的焦点。 一方面,有人声称地球的温度正在Swift升高,未来几天将发生前所未有的自然灾害,另一方面,有人声称全球变暖只是一个骗局,不会发生任何此类事件。 在这之中,有趣的是看到大多数人在社交媒体上谈论全球变暖,以及大多数人在辩论的哪个方面。

Social media has provided platforms, where users can provide their feedback about any issue. The data posted on these platforms are raw and direct opinions of the people, which can provide invaluable insights about the people’s perception of the situation. Among social media platforms, Twitter holds a large mine of data. All the user's data posted on the site is public and can be accessed using Twitter API. Additionally, Twitter has a hashtag culture which has made it easier to sort and collect data related to a specific topic of interest.

社交媒体提供了平台,用户可以在其中提供有关任何问题的反馈。 这些平台上发布的数据是人们的原始直接意见,可以提供有关人们对情况的感知的宝贵见解。 在社交媒体平台中,Twitter拥有大量数据。 网站上发布的所有用户数据都是公开的,可以使用Twitter API进行访问。 此外,Twitter具有主题标签文化,这使得分类和收集与特定主题相关的数据变得更加容易。

Utilizing the data available on Twitter, I have analyzed tweets related to global warming which are posted on the site using the hashtag #globalwarming. The tweets collected from twitter are personal posts of the platform users. In my opinion, it is unethical to disseminate any personal information of the users without direct consent from them. Hence, only the high-level findings of the analysis have been presented in this post.

利用Twitter上的可用数据,我分析了与全球变暖相关的推文,这些推文使用#globalwarming标签发布在网站上。 从Twitter收集的推文是平台用户的个人帖子。 我认为,未经用户直接同意而散布用户的任何个人信息是不道德的。 因此,本文仅介绍分析的高级发现。

The first step for the analysis is collecting relevant tweets from Twitter API. Following are the steps to access data from Twitter:

分析的第一步是从Twitter API收集相关的推文。 以下是从Twitter访问数据的步骤:

  1. Create a developer account to access Twitter API using twitter. After the developer account has been created, an app should be created. This enables the access of “Keys and Access tokens” for the project. These tokens should be saved to be used in the later stage.

    创建一个开发人员帐户以使用twitter

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值