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

handling usertimeline for private users #134

Description

@ipalvikas

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions