Need to access website and upload 2 text file using python

This is the place for queries that don't fit in any of the other categories.

Need to access website and upload 2 text file using python

Postby hiteshdua1 » Thu Jan 16, 2014 4:18 am

I want to find the difference between 2 text files stored in my computer.

1. I want to upload the two file to http://www.diffchecker.com and then want to download the result.
2. Can you also help me, in creating a python script so that this process is for N files .
3. Any python script that can do the same .?

I don't have much of python experience , so please do help me.
Last edited by micseydel on Thu Jan 16, 2014 5:45 am, edited 1 time in total.
Reason: Locked OP.
hiteshdua1
 
Posts: 1
Joined: Thu Jan 16, 2014 4:11 am

Re: Need to access website and upload 2 text file using pyth

Postby micseydel » Thu Jan 16, 2014 5:48 am

We typically want to see some effort on your part. If you don't know Python at all, you could start here, and if you haven't read this you really should.

Besides that, Linux and OS X come with a diff binary and I'm sure you could get one for Windows, if not pure Python if you wanted it. Is there a good reason you want to interact with the server instead of writing a non-networked version?
Join the #python-forum IRC channel on irc.freenode.net!

Please do not PM members regarding questions which are meant to be discussed publicly. The point of the forum is so that others can benefit from it. We don't want to help you over PMs or emails.
User avatar
micseydel
 
Posts: 1355
Joined: Tue Feb 12, 2013 2:18 am
Location: Mountain View, CA

Re: Need to access website and upload 2 text file using pyth

Postby stranac » Thu Jan 16, 2014 10:30 am

micseydel wrote:Linux and OS X come with a diff binary and I'm sure you could get one for Windows, if not pure Python

There's actually a library for this in the stdlib, called difflib.
Friendship is magic!

R.I.P. Tracy M. You will be missed.
User avatar
stranac
 
Posts: 1144
Joined: Thu Feb 07, 2013 3:42 pm


Return to General Coding Help

Who is online

Users browsing this forum: No registered users and 5 guests