Skip to content

Commit 05ec4ce

Browse files
committed
add readme and requirements
1 parent 4c453ad commit 05ec4ce

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

readme.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Step to use
2+
3+
1. `pip install -r requirements.txt`
4+
2. edit csv file e.g. `glossary_for_PRemoteM.csv`, add a new column with the name of the language code and name.
5+
3. set proxy if needed in the `glossary_maker.py` `if __name__ == '__main__':`
6+
7+
```python
8+
http_proxy = SyncHTTPProxy((b'http', b'127.0.0.1', 1080, b''))
9+
proxies = {'http': http_proxy, 'https': http_proxy}
10+
translator = Translator(proxies=proxies)
11+
```
12+
13+
4. run script `python glossary_maker.py` and it will create a new csv file with the translation result.

requirements.txt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
googletrans==3.1.0a0
2+
httpcore==0.9.1

0 commit comments

Comments
 (0)