Page I'm scraping: https://jisho.org/search/%23jlpt-n5%20%23words
I'm trying to scrape a japanese-english dictionary site. right now, it presents its meanings like this:
div 1: part of speech
div 2: meaning
div 1: part of speech
div 2: meaning
div 1: part of speech
div 2: meaning
etc.
What I want to do is take put the parts of speech in one column, and the meanings in another column, so when I export my data, it looks something like this:
word 1 | part of speech 1 | meaning 1
word 1 | part of speech 2 | meaning 2
word 1 | part of speech 3 | meaning 3
word 2 | part of speech 1 | meaning 1
word 2 | part of speech 2 | meaning 2
Is there a way to do this? I know how to make a selector for them separately, but if I just make two selectors, it puts the parts of speech and meanings in their own rows.
Sitemap:
{"_id":"n5_vocab","startUrl":["https://jisho.org/search/%23jlpt-n5%20%23words"],"selectors":[{"id":"entries","type":"SelectorElement","parentSelectors":["_root"],"selector":"div#primary div.concept_light","multiple":true,"delay":0},{"id":"word","type":"SelectorText","parentSelectors":["entries"],"selector":"div.concept_light-wrapper span.text","multiple":false,"regex":"","delay":0},{"id":"furigana","type":"SelectorText","parentSelectors":["entries"],"selector":"div.concept_light-wrapper span.furigana","multiple":false,"regex":"","delay":0},{"id":"meanings","type":"SelectorElement","parentSelectors":["entries"],"selector":"div.meanings-wrapper","multiple":false,"delay":0},{"id":"parts of speech","type":"SelectorText","parentSelectors":["meanings"],"selector":"div.meaning-tags","multiple":true,"regex":"","delay":0},{"id":"definitions","type":"SelectorText","parentSelectors":["meanings"],"selector":"div.meaning-wrapper span.meaning-meaning","multiple":true,"regex":"","delay":0}]}