Commit f2718707 authored by dasunx's avatar dasunx

Medium article scrapper modified

parent 996a2155
...@@ -93,7 +93,4 @@ class Medium: ...@@ -93,7 +93,4 @@ class Medium:
blog = self.getBlogs(validset["username"], validset["tag"]) blog = self.getBlogs(validset["username"], validset["tag"])
if bool(blog): if bool(blog):
blogs.append(blog) blogs.append(blog)
with open("ff.json", "w") as f:
json.dump({"blogs": blogs, "resources": validUrls}, f)
f.close()
return {"blogs": blogs, "resources": validUrls} return {"blogs": blogs, "resources": validUrls}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment