1
0
mirror of https://github.com/akaessens/NoFbEventScraper synced 2025-02-19 21:10:45 +01:00

update jsoup

This commit is contained in:
akaessens 2020-08-15 15:31:05 +02:00
parent 40a2c7d18f
commit 9ab18b496f
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ dependencies {
implementation 'androidx.navigation:navigation-ui:2.3.0'
// jsoup HTML parser library @ https://jsoup.org/
implementation 'org.jsoup:jsoup:1.11.1'
implementation 'org.jsoup:jsoup:1.13.1'
implementation 'com.squareup.picasso:picasso:2.71828'

View File

@ -98,7 +98,7 @@ public class FbScraper extends AsyncTask<Void, Void, Void> {
Document document = null;
try {
document = Jsoup.connect(url).get();
document = Jsoup.connect(url).userAgent("Mozilla").get();
try {
String json = document.select("script[type = application/ld+json]").first().data();