Hi,
I have a python assignment for an upper level CS class. My professor gave me this information:
Write a Python program that collects, summarizes, and e-mails all the programming assignments for this course. In particular, assuming the programs are in subdirectories a1, a2, ... a5 of directory csc344:
for each ai, generate a list of all symbols used in the program (class, function, etc names) and place this in a "symbols" file.
create a web page in the csc344 directory with links to each of the files.
create a zip file containing all assignment source
prompt the user for a mail adress and send the zip file
I am not asking for a solution here what I am wondering is:
Is he asking me to write a web scraper?
Where am I supposed to get the symbol's from?
Can I sent emails from python without an email server or do I have to connect to my email account?
This assignment can be found at: http://gee.cs.oswego.../csc344/a5.html
Thanks.
2 Replies - 2875 Views - Last Post: 04 May 2011 - 09:09 AM
#1
Python Programming Assignment (Not Asking for Solution)
Posted 03 May 2011 - 08:36 AM
Replies To: Python Programming Assignment (Not Asking for Solution)
#2
Re: Python Programming Assignment (Not Asking for Solution)
Posted 04 May 2011 - 04:35 AM
I don't see any indication this is a web scraper. It's a filesystem scraper (seek out os.path). You get the symbols from the files you read from the filesystem (i.e., you must parse and extract the symbols). I'd ask for further clarification on what he defines as a symbol...using "etc" in the list is pretty vague; i.e., does he want all variable names as well? What about imports?
#3
Re: Python Programming Assignment (Not Asking for Solution)
Posted 04 May 2011 - 09:09 AM
JackOfAllTrades, on 04 May 2011 - 04:35 AM, said:
I don't see any indication this is a web scraper. It's a filesystem scraper (seek out os.path). You get the symbols from the files you read from the filesystem (i.e., you must parse and extract the symbols). I'd ask for further clarification on what he defines as a symbol...using "etc" in the list is pretty vague; i.e., does he want all variable names as well? What about imports?
Ok that makes sense. I'll ask him what exactly he means by symbols too. Now I'm just concerned about how to extract the symbols because each assignment is in a different language, it seems like it would be an overly tedious task to write a method for each of the assignments. Do you think there is a better way?
Page 1 of 1

New Topic/Question
Reply


MultiQuote


|