on your computer the write(method returns the number of bytes written to the file in the previous examplethere were , bytes in the first chunkand the remaining part of the file needed only , bytes to reviewhere' the complete process for downloading and saving file call requests get(to download the file call open(with 'wbto create new file in write binary mode loop over the response object' iter_content(method call write(on each iteration to write the content to the file call close(to close the file that' all there is to the requests modulethe for loop and iter_content(stuff may seem complicated compared to the open()/write()/close(workflow you've been using to write text filesbut it' to ensure that the requests module doesn' eat up too much memory even if you download massive files you can learn about the requests module' other features from requests readthedocs orghtml before you pick apart web pagesyou'll learn some html basics you'll also see how to access your web browser' powerful developer toolswhich will make scraping information from the web much easier resources for learning html hypertext markup language (htmlis the format that web pages are written in this assumes you have some basic experience with htmlbut if you need beginner tutoriali suggest one of the following sitesa quick refresher in case it' been while since you've looked at any htmlhere' quick overview of the basics an html file is plaintext file with the html file extension the text in these files is surrounded by tagswhich are words enclosed in angle brackets the tags tell the browser how to format the web page starting tag and closing tag can enclose some text to form an element the text (or inner htmlis the content between the starting and closing tags for examplethe following html will display helloworldin the browserwith hello in boldhelloworld