mirror of
https://github.com/akaessens/NoFbEventScraper
synced 2025-02-19 21:10:45 +01:00
update jsoup
This commit is contained in:
parent
40a2c7d18f
commit
9ab18b496f
@ -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'
|
||||
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user