Pywikibot 미디어위키 이중넘겨주기 봇 돌리기

Pywikibot 이중 넘겨주기 봇 돌리기

1 사전작업[ | ]

2 방법 1: 수작업[ | ]

root@zetawiki:~# cd core_stable/
root@zetawiki:~/core_stable# python pwb.py redirect double
Retrieving special page...


>>> 미디어위키 이중 넘겨주기 수정 봇 돌리기 <<<
   Links to: [[미디어위키 이중 넘겨주기 봇 돌리기]].
   Links to: [[Pywikipedia 이중 넘겨주기 봇 돌리기]].
@@ -1 +1 @@
- #넘겨주기 [[미디어위키 이중 넘겨주기 봇 돌리기]]
+ #넘겨주기 [[Pywikipedia 이중 넘겨주기 봇 돌리기]]

Do you want to accept the changes? ([y]es, [N]o, [a]ll, [q]uit): a
Page [[미디어위키 이중 넘겨주기 수정 봇 돌리기]] saved


>>> 미디어위키 이중넘겨주기 수정 봇 <<<
   Links to: [[미디어위키 이중 넘겨주기 봇 돌리기]].
   Links to: [[Pywikipedia 이중 넘겨주기 봇 돌리기]].
@@ -1 +1 @@
- #넘겨주기 [[미디어위키 이중 넘겨주기 봇 돌리기]]
+ #넘겨주기 [[Pywikipedia 이중 넘겨주기 봇 돌리기]]

Sleeping for 4.7 seconds, 2016-03-30 21:30:37
... (생략)
>>> 저항기 <<<
   Links to: [[전기 저항]].
   Links to: [[전기저항]].
@@ -1 +1 @@
- #넘겨주기 [[전기 저항]]
+ #넘겨주기 [[전기저항]]

Page [[저항기]] saved
root@zetawiki:~/core_stable#

3 방법 2: 자동작업 -always[ | ]

  • -always 옵션을 주면, 물어보지 않고 계속 진행된다.
  • 크론탭에 등록하여 정기적으로 수행되게 하려면 이 방법으로 해야 한다.
root@zetawiki:~/core_stable# python pwb.py redirect double -always
Retrieving special page...


>>> 미디어위키 봇 설치 <<<
   Links to: [[Pywikibot 봇 설치하기]].
   Links to: [[Pywikibot 설치]].
@@ -1 +1 @@
- #넘겨주기 [[Pywikibot 봇 설치하기]]
+ #넘겨주기 [[Pywikibot 설치]]

Page [[미디어위키 봇 설치]] saved
... (생략)
>>> 미디어위키봇 설치 <<<
   Links to: [[Pywikibot 봇 설치하기]].
   Links to: [[Pywikibot 설치]].
@@ -1 +1 @@
- #넘겨주기 [[Pywikibot 봇 설치하기]]
+ #넘겨주기 [[Pywikibot 설치]]

Sleeping for 4.8 seconds, 2016-03-30 21:39:55
Page [[미디어위키봇 설치]] saved
root@zetawiki:~/core_stable#
  • 크론탭 등록 예시
root@zetawiki:~# crontab -l | grep 'redirect double'
33 * * * * python /root/core_stable/pwb.py redirect double -always
→ 매시 33분에 봇이 작동할 것이다.

4 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}