I want to automate downloading pictures from a web source, which uses streams, encoded as Base 64
strings.
My Google Chrome
browser properly recognizes the data from the source as a JPG
picture and shows it.
Now, this page is accessible only to registered users. Should I use Selenium
in that case?
So, basically, I want to generate around 1000 url
requests and save all streamed pictures on my local disk.
An example of my requested Url:
https://ia800703.us.archive.org/BookReader/BookReaderImages.php?zip=/10/items/nortonreaderan6theast/nortonreaderan6theast_jp2.zip&file=nortonreaderan6theast_jp2/nortonreaderan6theast_1257.jp2&scale=1&rotate=0
The response is a html
document with a picture:
<html>
<head>
<meta name="viewport" content="width=device-width, minimum-scale=0.1">
<title>BookReaderImages.php (2447×4005) </title>
</head>
<body style="margin: 0px; background: #0e0e0e;">
<img style="-webkit-user-select: none;cursor: zoom-in;" src="https://ia800703.us.archive.org/BookReader/BookReaderImages.php?zip=/10/items/nortonreaderan6theast/nortonreaderan6theast_jp2.zip&file=nortonreaderan6theast_jp2/nortonreaderan6theast_1257.jp2&scale=1&rotate=0" width="556" height="911">
</body>
</html>
The stream of the picture is a Base 64
string.
The browser allows to save it as nortonreaderan6theast_1257.jpg
Any suggestions?