title: how to get web-scraped data into tabular format by using csv files or text files (no using pandas)
body: <p>i have data scraped from a website and i need to make it into into a csv file and then read that file and display it</p>
  <p>please dont use pandas and convert it into a dataframe and then convert  that to a csv file</p>
  <p>i want a way where the scraped data is directly written to a csv file and then also the data from the csv file needs to be read and displayed in python idle</p>
  <p>the following is the code</p>
  <pre><code>import requests
  from bs4 import BeautifulSoup
  
  start_url=&quot;https://www.indeed.co.in/jobs?q=teacher&amp;l=India&quot;
  page_data=requests.get(start_url) #sending a http request to the site
  soup=BeautifulSoup(page_data.content,&quot;html.parser&quot;) #getting that requested data to store in an object
  
  #lists in which the data is going to be appended
  Title=[]
  Company=[]
  Summary=[]
  Location=[]
  Link_to_apply=[]
    
  
  for job_tag in soup.find_all(&quot;div&quot;,class_=&quot;jobsearch-SerpJobCard unifiedRow row result&quot;):  
  
      title=job_tag.find(&quot;h2&quot;,class_=&quot;title&quot;)
      company=job_tag.find(&quot;span&quot;,class_=&quot;company&quot;)
      location=job_tag.find(class_=&quot;location accessible-contrast-color-location&quot;).text.strip()
      summary=job_tag.find(&quot;div&quot;,class_=&quot;summary&quot;)
      link=job_tag.find(&quot;a&quot;,href=True)
      base_url=&quot;https://www.indeed.com&quot;
      final_link=base_url+link[&quot;href&quot;]
  
     Title.append(title.text.replace('/n',&quot; &quot;).strip())   ###text removes all the unwanted text and gives only the data
     Company.append(company.text.replace('\n',&quot; &quot;).strip())## replace() its replces new lines with just 1 space bar
     Summary.append(summary.text.replace('\n',&quot; &quot;).strip())#strip() replaces all leading and trailing spaces
     Location.append(location.replace('\n',&quot; &quot;))
     Link_to_apply.append(final_link)
  </code></pre>
  <p>please note only python idle can be used</p>