Update README.md

This commit is contained in:
neslihanturan 2021-02-18 12:16:03 +03:00 committed by GitHub
parent a57b8b5c85
commit 25b48c9f22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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