trying to figure out how to loop urls with a "for" loop (or any other loop for that matter)
I'm data scraping Howlongtobeat.com the url's are structured like this:
where only the number at the end of "id=" changes, how do I get the end of the string to change numbers??
page_number = range (38040, 38060)
url = 'https://howlongtobeat.com/game.php?id={page_number}'
this isn't working because I'm not adding to the string
and
url = 'https://howlongtobeat.com/game.php?id=' + page_number
isn't working because I'm getting this errror
TypeError: must be str, not range
FYI using beautifulsoup and csv writer to scrap the data and write it to a csv
I'm a beginner at this stuff so start from the top
Thanks!!!!!!!