Web Scraper (py+bs+sel) error on ''print'' line.

Good day/evening, I registered myself to git  just because of this particular syntax error. I am now almost a whole day in trying to figure it out…

images = []
   for i in sel_soup.findAll(“img”):
   src=i[“src”]
   images.append(src)
print(images)
^
SyntaxError: invalid syntax

We are building this img scraper for research purposes, I am not actually working as a programmer, the problem might be laughable but with my expertise I cannot spot it. I will provide the full code:

import os
import time
import shutil
import requests
from bs4 import BeautifulSoup
from selenium import webdriver

url = “https://www.delfi.lv/

web_r = requests.get(url)
web_soup = BeautifulSoup(web_r.text, ‘html.parser’)

driver = webdriver.Firefox(executable_path=r’C:\Users\OfficeBarn\OneDrive\Desktop\Scrape\1pyScrapeBsSel\geckodriver.exe’)
driver.get(“https://www.delfi.lv/”)
html = driver.execute_script(“return document.documentElement.outerHTML”)
sel_soup = BeautifulSoup(html, ‘html.parser’)
#print(sel_soup.findAll(“img”))# 

images = []
   for i in sel_soup.findAll(“img”):
   src=i[“src”]
   images.append(src)
print(images)

As you can probably figure, the main task would be being able to scrape images from a particular site and store them locally. The purpose of this research would be scrape pictures from most popular news media sites (in a particular country)  to show how many times (sometimes a day) a copyright infringemet can be observed. We would take into account the ‘glossary’ only - the landing page.  

Thanks for your help 

Posting with corrected indentation (use “insert code” in the future!):

images = []
   for i in sel_soup.findAll("img"):
       src=i["src"]
       images.append(src)
print(images)

Check your python version (use “python --version” at the command line). The “print” command is one thing that changed between python2 and python3. You are using python3 syntax in your code and it may be necessary to use the command “python3” at the command line.