User:PoetVeches
Babel user information | ||
---|---|---|
|
Hello World!
Useful articles
[edit]- How to report a bug
- Manual:Pywikibot
- Phabricator/Help
- Manual:Pywikibot/Overview
- Manual:Pywikibot/Installation
- Manual:Pywikibot/PAWS
- Wikipedia testsite
- Manual:Pywikibot/user-config.py
- Manual:Pywikibot/Create your own script
- Category:Pywikibot scripts
- Manual:Pywikibot/category.py
Short description of last work. X, 2020
[edit]- I jumped to Manual:Pywikibot/PAWS#Editing Pywikibot scripts and created path in terminal $ cp /srv/paws/pwb/scripts/checkimages.py ~
- Then written $ python checkimages.py
- Check commands $ python checkimages.py add_text -help
- Start from page $ python3 lonelypages.py -start:Capria -limit:500
Short description of last work. Y, 2020
[edit]- Manual:Pywikibot/PAWS→Start a terminal
- wikitech [1]
Short description of last work. October 26, 2020
[edit]- I tried to write new simple python code: xxnicexxnicezznicezznice.py
Short description of last work. July 21, 2021
[edit]- I started Terminal Manual:Pywikibot/PAWS#Start a terminal
- List of commands (I found command "CLEAR" accidentally that clears screen of Terminal, but actually it was in list of Terminal command if you follow manual Manual:Pywikibot/PAWS#Start a terminal and enter: 'ls /bin/')
- I worked out all instruction Manual:Pywikibot/PAWS#Inside Pywikibot and created changes on WikipediaTest (https://test.wikipedia.org/wiki/Test)
- I edited my file on PAWS 'user-config.py' to change verbial mylang = 'test' to mylang = 'en' to edit English Wikipedia page 'User:PoetVeches/sandbox'
and changed also name of page (site) on other script (cited in [Manual:Pywikibot/PAWS#Inside Pywikibot] ) from Wikipedia Test to English Wikipedia (site = pywikibot.Site('en', 'wikipedia') instead ('test', 'wikipedia')
- and changed the name of page edited (page = pywikibot.Page(site, 'User:PoetVeches/sandbox/Template:CrocodileIsAlsoLivingBeing') instead (site, 'test').
- and then I change all back to exclude I do accidentally changes on English Wikipedia.
- Then I started to write on Terminal (Manual:Pywikibot/PAWS#Login to the wiki to log in.
and created a page (Manual:Pywikibot/PAWS#Create a page
and see my changes here ([2]).
Short description of last work. July 22, 2021
[edit]- Editing my user-config.py code with Manual:Pywikibot/user-config.py
- New: I decided to use the code here Manual:Pywikibot/PAWS#Create a page in the mode (without -up, that is text placed in bottom):
pwb.py add_text -talk -page:'User_talk:PoetVeches' -text:'==Lorem Ipsum Welkom! == \nWelcome to Wikipedia! ~~~~
where\n
here creates somehow new line (as said in list given with the command in Terminal:pwb.py add_text -helo
)
Short description of last work. July 26, 2021
[edit]I created 2 new Python3 scripts , first, to add text above, and second, to add below, on PAWS notebooks (from pattern showed in Manual how to save page, see Manual:Pywikibot/PAWS#Inside Pywikibot).
- Also I created on notebooks new Python script to replace 'foo' with 'bar' from pattern in Manual:Pywikibot/PAWS#Accessing online documentation in PAWS → Pywikibot documentation.
- Also I watched YouTube. Small wiki toolkits 2021 - Bots workshop how to paste in Terminal (Ctrl + Shift + V or right click on FireFox browser to paste).
Short description of last work. July 27, 2021
[edit]I have written the code on Terminal to add text on new pages with defenet amount (10) and limit (11). PS: Actually it's random number at limit that propably has no sense because -newpages also has number (10).
pwb.py add_text -newpages:10 -limit:1 -summary:'Wikpedia Test practise' -text:'\n== You are invited to the Teahouse! == \n {| style="margin:1em 4em;" |- valign="top" | [[File:WP teahouse logo 2.png|alt=Teahouse logo|link=w:en:WP:Teahouse|File:WP teahouse logo 2.png by User:Heatherawalls, licensed under CC BY-SA 3.0]] | <div style="background-color:#f4f3f0; color: #393D38; padding: 0.4em 1em;border-radius:10px; font-size: 1.1em;"> Thanks for contributing to Wikipedia. <br />You may be interested to visit [[w:WP:teahouse|the Teahouse]]! The Teahouse is a friendly space where new editors can ask questions about contributing to Wikipedia and get help from experienced editors like. <div class="submit ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" role="button" aria-disabled="false" style="float: left;"><span class="ui-button-text">[[WP:Teahouse|Visit the Teahouse]]</span></div> </div> |} Welcoming sent by volunteered for Wikipedia, ~~~~. \n [[Category:Wikipedians who have received a Teahouse invitation]]<!-- Template:Teahouse_HostBot_Invitation -->'
Short description of last work. July 28, 2021
[edit]I read Manual until last the section Manual:Pywikibot/PAWS#Editing Pywikibot scripts about how to check images. There I found 2 mistakes (but later I saw that actually there was all right) in the section:
cp
is actually working, I just hadn't look at notebook to see import of script. But I hadn't notice thatcp
is working, and writtendir
. Whiledir
is just showing direction,cp
is also working (so, it was no error actually).- added parameter -limit:integer (eg, -limit:8, because the program would take long time to check all images if no limit defined)
Short description of last work. July 29, 2021
[edit]I imported script cp /srv/paws/pwb/scripts/weblinkchecker.py ~
and checked my direction dir
. As far as I don't know how use the new script, I used the script only once for Test-Wikipedia (with -limit:x for shortened time) and the script did nothing on Test-Wiki, because there many pages were with zero links. Result: I practised how import script (Manual:Pywikibot/PAWS#Editing Pywikibot scripts)
Main result of last work. July 29, 2021
[edit]- I had a general overview of python scripts (pywikibot) how python script looks in general. It is interesting for me because I am watching lecture on Edx. I have no intention to continue learning pywikibot, so this was my probably last note in the current year.
- May I remember next time that here users use
Ctrl+Shift+V
or right click when working on Terminal on Chrome (this is told in the video I mentioned above (see User:PoetVeches#Short description of last work. July 26, 2021).
- You may try
Ctrl+Z
in Terminal to stop python when a program running endlessly (but better define a limit to avoid long or endless loop).
PAWS
[edit]PAWS is in computing, abbr. from "Pywikibot: A Web Shell" or present-day "PAWS: A Web Shell (PAWS)", is an Open Source tool. PAWS is a Jupyter notebook deployment hosted by Wikimedia (see wikitech).
>>>
[edit]>>> − is a sign of three chevrons' prompt in the Python (PY4E - Introduction (Chapter 1 Part 3) https://www.youtube.com/watch?v=LLzFNlCjTSo Chuck Severance, video accessed November 2, 2020)