how to scrape multipage website with python and export data into .csv file?
<p>I would like to scrape the following website using python and need to export scraped data into a CSV file:</p>

<p><a href="http://www.swisswine.ch/en/producer?search=&amp;&amp;" rel="nofollow">http://www.swisswine.ch/en/producer?search=&amp;&amp;</a></p>

<p>This website consist of 154 pages to relevant search. I need to call every pages and want to scrape data but my script couldn't call next pages continuously. It only scrape one page data. </p>

<p>Here I assign value i&lt;153 therefore this script run only for the 154th page and gave me 10 data. I need data from 1st to 154th page </p>

<p>How can I scrape entire data from all page by once I run the script and also how to export data as CSV file??</p>

<p>my script is as follows</p>

<pre><code>import csv
import requests
from bs4 import BeautifulSoup
i = 0
while i &lt; 153:       
     url = ("http://www.swisswine.ch/en/producer?search=&amp;&amp;&amp;page=" + str(i))
     r = requests.get(url)
     i=+1
     r.content

soup = BeautifulSoup(r.content)
print (soup.prettify())


g_data = soup.find_all("ul", {"class": "contact-information"})
for item in g_data:
      print(item.text)
</code></pre>