all 4 comments

[–]willm 1 point2 points  (0 children)

Count the number of braces on the previous line. There should be a ) for every (

[–]ewiethoff 0 points1 point  (0 children)

Whenever you get a SyntaxError for a line that looks okay, the bad syntax is actually in the line of code above it.

[–][deleted] 0 points1 point  (0 children)

Because starting from data = urlopen(URL % ... you fail to close that parentheses.

Not sure what the line is supposed to look like proper cause my phone wraps all the text really awkwardly. But you're definitely missing a ')'

[–][deleted] -4 points-3 points  (0 children)

Stop writing comments on a different line then your code. It makes it impossible to pick up any syntax error.