Hello, this is the link to my outreach page 2 please check it out and comment
https://www.wikidata.org/wiki/User:Fonyuy237/Outreachy_2
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Advanced Search
Apr 18 2021
Apr 17 2021
In T278863#7011235, @Fonyuy237 wrote:In T278863#6992790, @Tambe wrote:In T278863#6990866, @Fonyuy237 wrote:Hello @Mike_Peel and other applicants. I have had issues with installing pywikibot had similar problems @AnkitaxPriya on my windows changed to linux and i am having issues
please how are we to create a script that will link to wikidata?Hey, if you copy the code from here https://www.wikidata.org/wiki/User:Mike_Peel/Outreachy_2 and paste it to a file that you have created in core/scripts/userscripts , you can then run the file (script) from core using
python pwb.py name_of_your_script.pyWhen you do this, then you would have successfully connected to wikidata and printed the text from the wiki page that you created earlier. if you are not very clear on which particular line of code connects to wikidata (since the enwiki variable was instead initialized to wikipedia), know that it is the line where enwiki_repo is formed. That is,
enwiki_repo = enwiki.data_repository()If you need guidance on any of the other sub-tasks, check out the mentor's example code here : https://bitbucket.org/mikepeel/wikicode/src/master/example.py , I found the functions in it very useful.
For any other specific issue, you can simply tag me here and I'll have a look at it.
Best
Thanks alot
In T278863#6992790, @Tambe wrote:In T278863#6990866, @Fonyuy237 wrote:Hello @Mike_Peel and other applicants. I have had issues with installing pywikibot had similar problems @AnkitaxPriya on my windows changed to linux and i am having issues
please how are we to create a script that will link to wikidata?Hey, if you copy the code from here https://www.wikidata.org/wiki/User:Mike_Peel/Outreachy_2 and paste it to a file that you have created in core/scripts/userscripts , you can then run the file (script) from core using
python pwb.py name_of_your_script.pyWhen you do this, then you would have successfully connected to wikidata and printed the text from the wiki page that you created earlier. if you are not very clear on which particular line of code connects to wikidata (since the enwiki variable was instead initialized to wikipedia), know that it is the line where enwiki_repo is formed. That is,
enwiki_repo = enwiki.data_repository()If you need guidance on any of the other sub-tasks, check out the mentor's example code here : https://bitbucket.org/mikepeel/wikicode/src/master/example.py , I found the functions in it very useful.
For any other specific issue, you can simply tag me here and I'll have a look at it.
Best
Apr 12 2021
Hello @Mike_Peel and other applicants. I have had issues with installing pywikibot had similar problems @AnkitaxPriya on my windows changed to linux and i am having issues
please how are we to create a script that will link to wikidata?
Apr 6 2021
Hello @Mike_Peel I am done with my user page and I'll be waiting for any form of correction or suggestion
https://www.wikidata.org/wiki/User:Fonyuy237/Outreachy_1
Thanks @Tru2198
Hello, please for task 1 when we are asked to add statement am i adding the statement directly on the article itself?