Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Back-end update #17

Open
ianbstewart opened this issue Jul 27, 2020 · 0 comments
Open

Back-end update #17

ianbstewart opened this issue Jul 27, 2020 · 0 comments

Comments

@ianbstewart
Copy link

It looks like Google changed the back-end for returning n-gram data, and now the results are generated in a different format. I had to replace a line in getngrams.py to fix it.

Original (line 29):

res = re.findall('var data = (.*?);\\n', req.text)

New (line 29):

res = re.findall('ngrams.data = (.*?);\\n', req.text)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant