(→설정) |
(→참고 자료) |
||
43번째 줄: | 43번째 줄: | ||
==참고 자료== | ==참고 자료== | ||
* https://www.mediawiki.org/wiki/Manual:Pywikibot/Installation | * https://www.mediawiki.org/wiki/Manual:Pywikibot/Installation | ||
* https://www.mediawiki.org/wiki/Manual:Pywikibot/Use_on_third-party_wikis | |||
[[분류: Pywikibot]] | [[분류: Pywikibot]] |
2016년 3월 28일 (월) 21:33 판
- 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
2 설정
Console
Copy
root@zetawiki:~# cd core_stable/
root@zetawiki:~/core_stable# cat user-config.py.sample
# -*- coding: utf-8 -*-
# This is a sample file. You should use generate_user_files.py
# to create your user-config.py file.
mylang = 'en'
family = 'wikipedia'
usernames['wikipedia']['en'] = 'Test'
root@zetawiki:~/core_stable# cp user-config.py.sample user-config.py
root@zetawiki:~/core_stable# vi user-config.py
py
3 참고 자료
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.