twitter4j - access tweet information from Streaming API

后端 未结 3 613
我在风中等你
我在风中等你 2021-02-01 11:01

My goal is to collect all tweets containing the words \"France\" and \"Germany\" and to also collect associated metadata (e.g., the geo coordinates attached to the tweet). I kno

3条回答
  •  自闭症患者
    2021-02-01 11:39

    The Error 401 comes when the API is trying to access some information which is unable to fetch at present. So you need to check the permission which are allowed on twitter. Change it to READ, WRITE and ... for full API access. Or there might be problem as you might be using the proxy server. Hence mention the proxy details using the following commands.

     System.getProperties().put("http.proxyHost", "10.3.100.211");
            System.getProperties().put("http.proxyPort", "8080");
    

提交回复
热议问题