Posts

Showing posts from February 8, 2019

JSoup: get wikipedia page summary

Image
0 I used MediaWiki API to get a wikipedia page, after getting html content I tried using p:not(h2 ~ p) to get page summary paragraphs, it should be paragraphs before table of contents element, it gets the wanted part but has additional paragraphs, where is the problem ? html css-selectors jsoup share | improve this question edited Nov 24 '18 at 14:27 Amr Lotfy asked Nov 23 '18 at 2:23 Amr Lotfy Amr Lotfy 1,521 2 15 34