- Pywikibot 설치
1 다운로드
Console
Copy
root@zetawiki:~# wget http://tools.wmflabs.org/pywikibot/core_stable.tar.gz
--2016-03-28 20:13:04-- http://tools.wmflabs.org/pywikibot/core_stable.tar.gz
Resolving tools.wmflabs.org (tools.wmflabs.org)... 208.80.155.131
Connecting to tools.wmflabs.org (tools.wmflabs.org)|208.80.155.131|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 28386664 (27M) [application/octet-stream]
Saving to: ‘core_stable.tar.gz’
100%[===========================================================>] 28,386,664 9.18MB/s in 2.9s
2016-03-28 20:13:08 (9.18 MB/s) - ‘core_stable.tar.gz’ saved [28386664/28386664]
Console
Copy
root@zetawiki:~# tar xvzf core_stable.tar.gz
core_stable/externals/httplib2/doc/html/_sources/index.txt
core_stable/externals/README
core_stable/user-config.py.sample
core_stable/.travis.yml
Console
Copy
root@zetawiki:~# cd core_stable/
root@zetawiki:~/core_stable# python pwb.py login
NOTE: 'user-config.py' was not found!
Please follow the prompts to create it:
Your default user directory is "/root/core_stable"
Do you want to use that directory? ([Y]es, [n]o):
Console
Copy
Do you want to copy user files from an existing Pywikibot installation? ([y]es, [N]o):
Console
Copy
Create user-config.py file? Required for running bots. ([Y]es, [n]o):
Console
Copy
1: anarchopedia
2: battlestarwiki
3: commons
4: i18n
5: incubator
6: lyricwiki
7: mediawiki
8: meta
9: omegawiki
10: osm
11: outreach
12: species
13: strategy
14: test
15: vikidia
16: wikia
17: wikiapiary
18: wikibooks
19: wikidata
20: wikimedia
21: wikinews
22: wikipedia
23: wikiquote
24: wikisource
25: wikitech
26: wikiversity
27: wikivoyage
28: wiktionary
29: wowwiki
Select family of sites we are working on, just enter the number or name (default: wikipedia): 7
2 참고 자료
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.