1
0
mirror of https://github.com/akaessens/NoFbEventScraper synced 2025-06-05 23:29:13 +02:00

change css query for scraping to sth. more general

This commit is contained in:
akaessens
2020-03-26 10:54:38 +01:00
parent 3c6c51e781
commit 3a6f92d7b5
2 changed files with 3 additions and 7 deletions

View File

@ -34,7 +34,7 @@ public class FbScraper extends AsyncTask<Void, Void, Void> {
try {
document = Jsoup.connect(url).get();
String json = document.select("#u_0_j").first().data();
String json = document.select("script[type = application/ld+json]").first().data();
try {
JSONObject reader = new JSONObject(json);
@ -62,12 +62,6 @@ public class FbScraper extends AsyncTask<Void, Void, Void> {
e.printStackTrace();
}
return null;
}