Re: Downloading multiple files based on info extracted from CSV

2013-12-16 Thread Matt Graves
On Thursday, December 12, 2013 5:20:59 PM UTC-5, Chris Angelico wrote: > import urllib > > import csv > > > > # You actually could get away with not using a with > > # block here, but may as well keep it for best practice > > with open('clients.csv') as f: > > for client in csv.reader(f

Downloading multiple files based on info extracted from CSV

2013-12-12 Thread Matt Graves
I have a CSV file containing a bunch of URLs I have to download a file from for clients (Column 7) and the clients names (Column 0) I tried making a script to go down the .csv file and just download each file from column 7, and save the file as [clientname].csv I am relatively new to python, so

Downloading file

2013-12-12 Thread Matt Graves
I have direct links to a number of csv files to download. Copying and pasting it to my browser would take too long, how would i go to this site for example and get the file? Right when you go to the site the download should start www.example.com/files/document.csv -- https://mail.python.org/mai

Re: Jabberbot

2013-11-13 Thread Matt Graves
On Wednesday, November 13, 2013 11:32:24 AM UTC-5, Mark Lawrence wrote: > On 13/11/2013 16:12, Matt Graves wrote: > > > I'm using the jabberbot library and there is not a whole lot of > > documentation on it. Does anyone have experience with this library? > > >

Jabberbot

2013-11-13 Thread Matt Graves
I'm using the jabberbot library and there is not a whole lot of documentation on it. Does anyone have experience with this library? This is basically the only example given: - from jabberbot import JabberBot, botcmd import datetime class SystemInfoJabberBot(JabberBot):

Python HTTP POST

2013-07-17 Thread Matt Graves
I am going to be creating a python script that will make filling in information at my job easier. I have all of the information I need... I guess I just need to see it in practice to fully grasp it. How would I submit a python HTTP POST request to... for example, go to google.com, enter "Pie"

String object has no attribute "append"

2013-05-28 Thread Matt Graves
I receive this error while toying around with Functions... def pulldata(speclist,speccolumn): with open('profiles.csv', 'r') as f: reader = csv.reader(f) for column in reader: (speclist).append(column[('speccolumn')]) pulldata(speclist = 'numbers',