Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
afshinsadeghi committed Mar 26, 2018
1 parent 72a148a commit d1c489c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions dbpediaDown.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@


def downloadlink(l):
f=open(l.text,"w")
br.click_link(l)
br._factory.is_html = True
f.write(br.response().read())
# f=open(l.text,"w")
# br.click_link(l)
# br._factory.is_html = True
br.retrieve(l, l.text)
# f.write(br.response().read())
print l.text," is downloaded. Extracting..."
os.system("bzip2 -d " + l.text)
# os.system("rm " + l.text)
Expand Down

0 comments on commit d1c489c

Please sign in to comment.