pyreverso
pyreverso copied to clipboard
BeautifulSoup is replaced with regexp
Hi! I've made a few changes:
- add
.gitignorefile - throw BeautifulSoup away and use simple regexp
Could you shed some light on the get_examples method of ReversoContextAPI?
Thank you very much for your work!
Could you shed some light on the get_examples method of ReversoContextAPI?
Currently, however, neither get_examples or get_translations work (see issue #6). It looks like there were drastic changes on the website, so it might be even necessary to replace some API calls via requests with parsing HTML via BeautifulSoup.
When I have time, I'm going to figure out the cause of the problem, and depending on that I will decide whether to merge this PR or not.
Sure. I would still suggest to use request session to reuse a single connection instead of creating a short-live connection for each request.