In [1]:
from pattern.web import URL, DOM, plaintext, Element, extension, Crawler, DEPTH
import re
import pickle
import random
import PIL
import time
from PIL import Image
In [10]:
tried_ids_sharath = pickle.load(open("sharath_ids/tried_ids_final.p","rb"))
recipe_list_sharath = pickle.load(open("sharath_ids/recipes_final.p","rb"))
print len(tried_ids_sharath)
print len(recipe_list_sharath)
#Change the location to Other Ids and Recipes files
tried_ids = pickle.load(open("tried_ids.p","rb"))
recipe_list = pickle.load(open("recipes.p","rb"))
print len(tried_ids)
print len(recipe_list)
merged_ids = tried_ids_sharath.union(tried_ids)
z = recipe_list_sharath.copy()
merged_recipe = z.update(recipe_list)
print len(merged_ids)
print len(z)
pickle.dump( merged_ids, open( "recipes_merged.p", "wb" ) )
pickle.dump( merged_recipe, open( "tried_ids_merged.p", "wb" ) )
In [ ]: