阅读背景:

当使用错误的url文本并且无法连接时如何处理jsoup?

来源:互联网 

I have searched and searched and read and tested....including: /6557673/jsoup-cant-extract-stock-price-from-the-webpage - which is the closest issue I found, but my perspective is a bit different. I'm scraping text from urls with dynamic content. Only the last segment of the url varies, such as is done here with question numbers. My issue is that if I enter a page number that doesn't exist, I get an instant crash, such as: 'The application has stopped unexpectedly'. It logs 'String index out of range -1' which makes sense. I have searched and searched and read and teste




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: