ultimi import urllib PY3

This commit is contained in:
marco
2020-10-06 18:18:52 +02:00
parent aec033163e
commit 922f54fafe
6 changed files with 26 additions and 9 deletions
+5 -1
View File
@@ -1,6 +1,9 @@
# -*- coding: utf-8 -*-
import urllib
try:
import urllib.parse as urllib
except ImportError:
import urllib
from core import httptools, support
from core import scrapertools
@@ -8,6 +11,7 @@ from platformcode import logger, config
headers = [['User-Agent', 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0']]
def test_video_exists(page_url):
logger.info("(page_url='%s')" % page_url)
# page_url = re.sub('akvideo.stream/(?:video/|video\\.php\\?file_code=)?(?:embed-)?([a-zA-Z0-9]+)','akvideo.stream/video/\\1',page_url)
+4 -1
View File
@@ -1,6 +1,9 @@
# -*- coding: utf-8 -*-
import urllib
try:
import urllib.parse as urllib
except ImportError:
import urllib
from core import httptools
from core import scrapertools
+4 -1
View File
@@ -1,7 +1,10 @@
# -*- coding: utf-8 -*-
import time
import urllib
try:
import urllib.parse as urllib
except ImportError:
import urllib
from core import httptools, support
from core import scrapertools