Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

Commit

Permalink
some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
SnowballAntrobus committed May 16, 2019
1 parent d990fbd commit ca9a492
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 1 deletion.
Binary file added .DS_Store
Binary file not shown.
4 changes: 3 additions & 1 deletion everything.py
Expand Up @@ -253,6 +253,8 @@ def div_parsing_helper(x1, y1, x2, y2, html):
x_div = int(random.gauss(960, 500))
y_div = int(random.gauss(800, 50))
next_div = next_div.find_next_sibling("div")
if next_div is None:
return
div_parsing_helper(x_div, y_div, x_div + c, y_div + c, next_div)


Expand Down Expand Up @@ -319,4 +321,4 @@ def div_parsing_helper(x1, y1, x2, y2, html):
# Show image
im.show()
# Save image
im.save('landscape.jpg')
im.save('landscape.png')
Binary file modified landscape.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed landscape.png
Binary file not shown.

0 comments on commit ca9a492

Please sign in to comment.