mirror of
https://github.com/timberjoegithub/GoogleScrape.git
synced 2026-07-22 00:19:48 +00:00
bringing database up to date
This commit is contained in:
@@ -778,7 +778,7 @@ def check_wordpress_media(filename, headers):
|
||||
|
||||
file_name_minus_extension = filename
|
||||
response = requests.get(env.wpAPI + "/media?search="+file_name_minus_extension,\
|
||||
headers=headers,timeout=40)
|
||||
headers=headers,timeout=60)
|
||||
try:
|
||||
result = response.json()
|
||||
if result:
|
||||
@@ -1358,7 +1358,7 @@ def post_to_wordpress(title,content,headers,date,rating,address,picslist,local_o
|
||||
}
|
||||
try:
|
||||
image_response = requests.post(env.wpAPI + "/media", headers=headers, \
|
||||
files=image,timeout=30)
|
||||
files=image,timeout=60)
|
||||
except AttributeError as error:
|
||||
print(" An error uploading picture ' + picname+ ' occurred:", \
|
||||
type(error).__name__)
|
||||
|
||||
Reference in New Issue
Block a user