Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import json
- import urllib.request
- import configparser
- import os
- def createConfig(path):
- config = configparser.ConfigParser()
- config.add_section("Url")
- config.set("Url", "2ch.hk/rf", "json")
- config.set("Url", "rfch.xyz/rf", "json")
- config.set("Url", "2--ch.ru/rf", "html")
- with open(path, "w") as config_file:
- config.write(config_file)
- createConfig('refuge.ini')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement