mirror of
https://github.com/akaessens/NoFbEventScraper
synced 2025-02-19 21:10:45 +01:00
change css query for scraping to sth. more general
This commit is contained in:
parent
3c6c51e781
commit
3a6f92d7b5
@ -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;
|
||||
}
|
||||
|
||||
|
@ -118,6 +118,7 @@
|
||||
android:id="@+id/field_event_location"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:autoLink="map"
|
||||
android:clickable="true"
|
||||
android:cursorVisible="true"
|
||||
android:hint="Event location"
|
||||
@ -132,6 +133,7 @@
|
||||
android:id="@+id/field_event_description"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:autoLink="web"
|
||||
android:clickable="true"
|
||||
android:cursorVisible="true"
|
||||
android:hint="Event description"
|
||||
|
Loading…
x
Reference in New Issue
Block a user