We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 721b260 + 0ecacff commit db5cce1Copy full SHA for db5cce1
1 file changed
plugins/mylife.py
@@ -21,8 +21,8 @@ def refresh_fml_cache(loop):
21
request = yield from loop.run_in_executor(None, _func)
22
soup = BeautifulSoup(request.text)
23
24
- for e in soup.find_all('div', {'class': re.compile('article')}):
25
- fml_id = int(e['id'])
+ for e in soup.find_all('article', {'class': 'art-panel'}):
+ fml_id = int(e.find('div', {'id': re.compile('card')})['id'].split('-')[-1])
26
text = ''.join(e.find('p').find_all(text=True))
27
fml_cache.append((fml_id, text))
28
except:
0 commit comments