123456789101112131415161718 |
- #!/usr/bin/python3
- import os
- import codecs
- lst=['5926','5878','5912','5939','5885','4300','1042','3559']
- #lst=['5926']
- dir_prefix='/var/www/jared-faq/'
- for l in lst:
- curdir=dir_prefix+l
- if not os.path.exists(curdir):
- os.mkdir(curdir)
- os.chdir(curdir)
- # os.system('curl https://hhh.com.tw/columns/detail/'+l+'/ > index.html')
- os.system('curl https://hhh.com.tw/orig_column/'+l+'/ > index.html')
|