if 1==0:
 text=requests.get("https://twokinds.keenspot.com/").text
 text=text.split('src="https://cdn.twokinds.keenspot.com/comics/')[1].split('"')[0]
 os.system("curl https://cdn.twokinds.keenspot.com/comics/"+text+">I:\\comics\\twokinds"+text)
 os.system("copy I:\\comics\\twokinds"+text+" I:\\comics\\twokindscur.png")


x=0
text2=999999
try:
 f= open("I:\\comics\\curtwokinds.txt", "r")
 curchap=f.readline().replace("\n","")+1-1
 f.close()
except:
 curchap=0
try:
 x=curchap
 temp=10
 while temp>5:
  print(x)
  temp=temp-1
  x=x+1
  if x>curchap and (not os.path.exists("I:\\comics\\twokinds"+str(x)+".png")):
   temp=10
   text=requests.get("https://twokinds.keenspot.com/comic/"+str(x)).text
   text=text.split('src="https://cdn.twokinds.keenspot.com/comics/')[1].split('"')[0]
   print(text)
   os.system("curl https://cdn.twokinds.keenspot.com/comics/"+text+">I:\\comics\\twokinds"+str(x)+".png")
   os.system("echo "+str(x)+">I:\\comics\\curtwokinds.txt")
except:
 os.system("echo "+str(x)+">I:\\comics\\curtwokinds.txt")
 os.system("copy I:\\comics\\twokinds"+str(x)+".png twokindscur.png")
os.system("echo "+str(x)+">I:\\comics\\curtwokinds.txt")
if x!=curchap:
 comic="twokinds"
x=0
text2=999999
try:
 f= open("I:\\comics\\currascals.txt", "r")
 curchap=f.readline().replace("\n","")+1-1
 f.close()
except:
 curchap=0
try:
 text=requests.get("https://rascals.kemono.cafe/comic/rascals-pg-0").text
 temp=10
 while temp>5:
  print(x)
  temp=temp-1
  x=x+1
  if x>curchap and (not os.path.exists("I:\\comics\\rascals"+str(x)+".png")):
   temp=10
   text2=text.split('" title="Rascals Pg')[1].split('src="')[1].split('"')[0]
   print(text2)
   os.system("curl "+text2+">I:\\comics\\rascals"+str(x)+".png")
   os.system("echo "+str(x)+">I:\\comics\\currascals.txt")
  text=text.split('<td')[3].split("<td")[0].split('href="')[1].split('"')[0]
  print(text)
  text=requests.get(text).text
except Exception as e:
 print(e)
 os.system("echo "+str(x)+">I:\\comics\\currascals.txt")
 os.system("copy I:\\comics\\rascals"+str(x)+".png rascalscur.png")
os.system("echo "+str(x)+">I:\\comics\\currascals.txt")
if x!=curchap:
 comic="rascals"
os.system("echo "+comic+">I:\\comics\\curcomic.txt")

x=0
text2=999999

try:
 f= open("I:\\comics\\curduncan.txt", "r")
 curchap=f.readline().replace("\n","")+1-1
 f.close()
except:
 curchap=0