我试着用RedditExtractoR刮Reddit
我的疑问
df = get_reddit(search_terms = "blockchain",page_threshold = 2)将错误显示为
不能打开网址'http://www.reddit.com/r/CryptoCurrency/comments/7vga1y/i_will_tell_you_exactly_what_is_going_on_here/.json?limit=500':HTTP状态是'403紫禁城‘不能打开网址'http://www.reddit.com/r/IAmA/comments/blssl3/my_name_is_benjamin_zhang_and_im_a_transportation/.json?limit=500':HTTP状态是'403紫禁城’不能打开网址'http://www.reddit.com/r/IAmA/comments/blssl3/my_name_is_benjamin_zhang_and_im_a_transportation/.json?limit=500':HTTP状态是'403禁忌‘3紫禁城’
我该怎么解决呢?
发布于 2022-03-02 09:30:30
403被禁止的通常原因是:( a)服务器的问题( b)被阻塞
我创建了一个R程序,它使用get_reddit提取器库来测试是否可以通过使用它来阻止
library(RedditExtractoR)
blockchain <- get_reddit(
search_terms = "blockchain",
page_threshold = 2,
)不管我怎么操作它都很有魅力。幸运的是,RedditExtractoR有内置的利率限制,以防止出现问题.根据redditExtractorR包文档:
Question: All functions in this library appear to be a little slow, why is that?
Answer: The Reddit API allows users to make 60 requests per minute (1 request per second), which is why URL parsers used in this library intentionally limit requests to conform to the API requirements但是,由于阻塞而产生的403个错误仍然是很有可能的。
如果你开始得到403或者:
https://stackoverflow.com/questions/68797791
复制相似问题