Jump to content

User:PoetVeches

From mediawiki.org
Babel user information
ru-N Русскийродной язык этого участника.
en-2 This user has intermediate knowledge of English.


Hello World!


Useful articles

[edit]

Short description of last work. X, 2020

[edit]
  1. I jumped to Manual:Pywikibot/PAWS#Editing Pywikibot scripts and created path in terminal $ cp /srv/paws/pwb/scripts/checkimages.py ~
  2. Then written $ python checkimages.py
  3. Check commands $ python checkimages.py add_text -help
  4. Start from page $ python3 lonelypages.py -start:Capria -limit:500

Short description of last work. Y, 2020

[edit]

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]

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.

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).



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:

  1. cp is actually working, I just hadn't look at notebook to see import of script. But I hadn't notice that cp is working, and written dir. While dir is just showing direction, cp is also working (so, it was no error actually).
  2. 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]
  1. 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.
  2. 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).
  1. 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)

Jupyter notebook

[edit]

Video https://www.youtube.com/watch?v=HW29067qVWk