Skip to main content
added 12 characters in body; edited title
Source Link
Jamal
  • 35.2k
  • 13
  • 134
  • 238

Pure Python script that saves htmlan HTML page with all images

Here is a pure Python script that saves htmlan HTML page without CSS but with all images on it and replaces all hrefs with a path of an image on the hard drive.

I know that there are great libraries like BeautifulSoupBeautifulSoup and others but I would like to try myself with pure Python.

Pure Python script that saves html page with all images

Here is pure Python script that saves html page without CSS but with all images on it and replaces all hrefs with path of image on hard drive.

I know that there are great libraries like BeautifulSoup and others but I would like to try myself with pure Python.

Pure Python script that saves an HTML page with all images

Here is a pure Python script that saves an HTML page without CSS but with all images on it and replaces all hrefs with a path of an image on the hard drive.

I know that there are great libraries like BeautifulSoup and others but I would like to try myself with pure Python.

Tweeted twitter.com/#!/StackCodeReview/status/577310990976565248
edited tags
Link
200_success
  • 145.6k
  • 22
  • 191
  • 481
deleted 68 characters in body
Source Link
Jamal
  • 35.2k
  • 13
  • 134
  • 238

Please review this code and provide suggestions on its improvement.

Actually there is no practical usage of this script, it was just test task from one of companies where I applied.

Once again what it does: This

This script can pe launchedpre-launched from command line, itwhich takes 2 arguments:

So how IHow can I improve it?

Please review this code and provide suggestions on its improvement.

Actually there is no practical usage of this script, it was just test task from one of companies where I applied.

Once again what it does: This script can pe launched from command line, it takes 2 arguments:

So how I can I improve it?

Actually there is no practical usage of this script, it was just test task from one of companies where I applied.

Once again what it does:

This script can pre-launched from command line, which takes 2 arguments:

How can I improve it?

Source Link
Loading