gywewytifew
New Member
I created a loop function that extract tweets using the search api with a certain interval (lets say every 5 min.). This function does what it suppose to do: connect to twitter, extracts tweets that contain a certain keyword, and saves them in a csv file. However occasionally (2-3 times a day) the loop is stopped because of one of these two errors:
- Error in htmlTreeParse(URL, useInternal = TRUE) : error in creating parser for http://search.twitter.com/search.atom?q=6.95322e-310tst&rpp=100&page=10
- Error in UseMethod("xmlNamespaceDefinitions") : no applicable method for 'xmlNamespaceDefinitions' applied to an object ofclass "NULL"
- What causes these errors to occur?
- How can I adjust my code to avoid these errors?
- How can I 'force' the loop to keep running if it experiences an error (e.g. by using the Try function)?