Skip to content
This repository has been archived by the owner on Apr 11, 2019. It is now read-only.

handling usertimeline for private users #134

Open
iPALVIKAS opened this issue Sep 26, 2016 · 0 comments
Open

handling usertimeline for private users #134

iPALVIKAS opened this issue Sep 26, 2016 · 0 comments

Comments

@iPALVIKAS
Copy link

When i am requesting tweets of users on twitter with their respetive twitter handle, it shows me authentication error even if my connection is authenticated.

Later i figured out that, it is due to the fact that the user may have kept its account private or that user handle is no more active on twitter.

I want to handle this error and I am not getting a proper way to handle this.

Help me out in understanding how to handle this error.

Thank you.

Here is the code which i am using.


user_data <- tryCatch({            
        userTimeline(id, n = 3200)            
      },          
      error <- function(cond) {
        return(NA)
      },          
      warning <- function(cond){
        return(NA)
      },
      finally <- {})

Please find the link of stackoverflow

http://stackoverflow.com/q/39697794/6851514?stw=2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant