You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
282B

  1. class gfycat():
  2. def __init__(self):
  3. pass
  4. def url_get(self,url):
  5. urlsplit = url.split("/")
  6. urlsplit[2] = "giant." + urlsplit[2]
  7. urlsplit[-1] += ".gif"
  8. urlnew = "/".join(urlsplit)
  9. return urlnew
  10. def get(self,url):
  11. #url2 = self.url_get(url)
  12. url2 = url
  13. return url2