fix :)
This commit is contained in:
parent
e7eda34aa6
commit
05c12b3977
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
.venv/
|
||||||
|
*~
|
||||||
|
|
7
randomword_grabber.py
Normal file → Executable file
7
randomword_grabber.py
Normal file → Executable file
@ -1,3 +1,5 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
from bs4 import BeautifulSoup
|
from bs4 import BeautifulSoup
|
||||||
import requests
|
import requests
|
||||||
import json
|
import json
|
||||||
@ -36,8 +38,8 @@ def main(words_data):
|
|||||||
return(words_data)
|
return(words_data)
|
||||||
|
|
||||||
__author__ = 'Alexander Popov'
|
__author__ = 'Alexander Popov'
|
||||||
__license__ = "Public Domain"
|
__license__ = "MIT"
|
||||||
__version__ = "1.0.0"
|
__version__ = "1.0.1"
|
||||||
__email__ = "iiiypuk@fastmail.fm"
|
__email__ = "iiiypuk@fastmail.fm"
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
@ -53,3 +55,4 @@ if __name__ == '__main__':
|
|||||||
json.dumps(words, indent=4, ensure_ascii=False))
|
json.dumps(words, indent=4, ensure_ascii=False))
|
||||||
|
|
||||||
print('Saved %d words.' % len(words))
|
print('Saved %d words.' % len(words))
|
||||||
|
|
||||||
|
4
words.json
Normal file
4
words.json
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user