All Questions
20 questions
0
votes
1
answer
22
views
Unable to print output of JSON code into a .csv file
I'm getting the following errors when trying to decode this data, and the 2nd error after trying to compensate for the unicode error:
Error 1:
write.writerows(subjects)
UnicodeEncodeError: 'ascii' ...
0
votes
1
answer
31
views
Webscraping data from a json source, why i get only 1 row?
I'am trying to get some information from a website with python, from a webshop.
I tried this one:
def proba():
my_url = requests.get('https://www.telekom.hu/shop/categoryresults/?N=10994&...
0
votes
0
answers
43
views
How to cull dictionaries that is in between HTML Tags as an element?
How can I cull the {juicy_dictionary} from the scrapped HTML source where its tagged like
<div data-qa-id="doctor_card" class="u-cushion u-white-fill u-normal-text o-card o-card--separated c-...
1
vote
2
answers
56
views
python: range not being executed
App executes but the range doesn't. In my CSV file, it only shows the first entry. I've also come across index out of range errors when scraping other fields. Any help would be appreciated. I'm ...
0
votes
2
answers
232
views
Loading more content in a webpage and issues writing to a file
I am working on a web scraping project which involves scraping URLs from a website based on a search term, storing them in a CSV file(under a single column) and finally scraping the information from ...
0
votes
2
answers
2k
views
How do I access urls in an excel file and scrape information stored in those links using beautiful soup?
I am trying to access a set of urls present in rows and scrape respective information from all those links and store it in a text file. I have my links stored in a file - "ctp_output.csv"
Currently I ...
0
votes
1
answer
287
views
Python - Beautiful Soup - Retrieving Table Data
this is my first question in StackOverflow and I would really appreciate your help! I am trying to scrape table data and convert into a csv file using python 2.7 and R from the NUFORC from this page: ...
0
votes
1
answer
1k
views
Web scraping and saving in csv file
I am using Selenium and the automation part is working efficiently but the data is being saved in the csv inaccurately. Even though I have four addresses in my f (csv file), it only returns the data ...
2
votes
1
answer
939
views
saving the scraped data into a csv file
I am iterating through a process in which I direct Python to a website and instruct Python to look for addresses I have in my csv file in the designated website. I want to tell Python to save the ...
0
votes
2
answers
104
views
Search the website for Address values
I have been scratching my head on how to tackle this dilemma of mines for a while now. I have a Address column in my csv file, which contains list of Addresses. I want to be able to direct Python to ...
0
votes
0
answers
46
views
Match values of csv
I request advice on a Pythonic matter I am confused about. I have a csv file which holds a field value I need to search by on a website. Next, I want to tell Python if you find any matching values ...
-1
votes
2
answers
209
views
python code for Exporting scraped data to CSV
import csv
in_txt = csv.reader(open(post.text, "rb"), delimiter = '\t')
out_csv = csv.writer("C:\Users\sptechsoft\Documents\source3.csv", 'wb')
out_csv.writerows(in_txt)
when executing ...
0
votes
1
answer
113
views
Python: Exporting CSV from web scrape
The code below currently prints everything I want out of the website; however, I am facing difficulty trying to turn it into a CSV that I can work with.
from selenium import webdriver
import csv
...
0
votes
1
answer
32
views
How do I write all of these rows into a CSV file for a given range?
The purpose of the below code is the webscrape the oxford english dictionary for words that were "invented" in each year within a range of years. This all works as intended.
import csv
import os
...
0
votes
0
answers
50
views
Python Web Scrape to CSV is missing field
I am trying to export all of my information I pulled from TripAdvisor onto a CSV that contains the name of the restaurant and its address. However in my code below, when I check the csv I exported it ...