mirror of
https://github.com/akaessens/NoFbEventScraper
synced 2025-02-22 06:17:53 +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 {
|
try {
|
||||||
document = Jsoup.connect(url).get();
|
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 {
|
try {
|
||||||
JSONObject reader = new JSONObject(json);
|
JSONObject reader = new JSONObject(json);
|
||||||
@ -62,12 +62,6 @@ public class FbScraper extends AsyncTask<Void, Void, Void> {
|
|||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -118,6 +118,7 @@
|
|||||||
android:id="@+id/field_event_location"
|
android:id="@+id/field_event_location"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:autoLink="map"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:cursorVisible="true"
|
android:cursorVisible="true"
|
||||||
android:hint="Event location"
|
android:hint="Event location"
|
||||||
@ -132,6 +133,7 @@
|
|||||||
android:id="@+id/field_event_description"
|
android:id="@+id/field_event_description"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:autoLink="web"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:cursorVisible="true"
|
android:cursorVisible="true"
|
||||||
android:hint="Event description"
|
android:hint="Event description"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user