mirror of
https://github.com/neslihanturan/Mass-Upload-Lazuri-Wiktionary.git
synced 2026-04-29 09:49:51 +00:00
Update README.md
This commit is contained in:
parent
a57b8b5c85
commit
25b48c9f22
@ -4,7 +4,7 @@ This project is how we (with [@ooguz](https://github.com/ooguz)) created several
|
|||||||
## Steps
|
## Steps
|
||||||
1. Parse current source json file (lazuri.json) with "parser.py" script.
|
1. Parse current source json file (lazuri.json) with "parser.py" script.
|
||||||
2. Create a text file output ready to be used by PyWikiBot pagefromfile script
|
2. Create a text file output ready to be used by PyWikiBot pagefromfile script
|
||||||
3. Create pages from output (lazuriTargetTr.json) file with PyWikiBot (before this step make sure you know what you are doing, be careful since you will be editing Wiktionary and you wouldn't prefer to vandalize it):
|
3. Create pages from output (lazuriTargetTr.txt) file with PyWikiBot (before this step make sure you know what you are doing, be careful since you will be editing Wiktionary and you wouldn't prefer to vandalize it):
|
||||||
|
|
||||||
PyWikiBot is a rich tool to make several operations on wikis. We will be using "pagefromfile" tool. Here is the [documentation](https://www.mediawiki.org/wiki/Manual:Pywikibot) (you may be needed to set your configuration settings first according to your account information and the Wiktionary you will be editing)
|
PyWikiBot is a rich tool to make several operations on wikis. We will be using "pagefromfile" tool. Here is the [documentation](https://www.mediawiki.org/wiki/Manual:Pywikibot) (you may be needed to set your configuration settings first according to your account information and the Wiktionary you will be editing)
|
||||||
|
|
||||||
@ -21,4 +21,4 @@ For out specific purpose create input files in form of:
|
|||||||
```
|
```
|
||||||
Where everything between {{-start-}} and {{-stop-}} will be a single page content which should be written according to wikitext format. The first item between triple quotes ( \'\'\' \'\'\' ) will be the name of the page. To run the script you simply run this command from terminal:
|
Where everything between {{-start-}} and {{-stop-}} will be a single page content which should be written according to wikitext format. The first item between triple quotes ( \'\'\' \'\'\' ) will be the name of the page. To run the script you simply run this command from terminal:
|
||||||
```
|
```
|
||||||
python pwb.py pagefromfile -showdiff -file:lazuriTargetTr.json
|
python pwb.py pagefromfile -showdiff -file:lazuriTargetTr.txt
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user