forked from phonedude/cs532-s17
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patha1.txt
54 lines (46 loc) · 1.36 KB
/
a1.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
CS 432/532 Web Science
Spring 2017
http://phonedude.github.io/cs532-s17/
Assignment #1
Due: 11:59pm Sept 26
1. Demonstrate that you know how to use "curl" well enough to
correctly POST data to a form. Show that the HTML response that
is returned is "correct". That is, the server should take the
arguments you POSTed and build a response accordingly. Save the
HTML response to a file and then view that file in a browser and
take a screen shot.
2. Write a Python program that:
1. takes as a command line argument a web page
2. extracts all the links from the page
3. lists all the links that result in PDF files, and prints out
the bytes for each of the links. (note: be sure to follow
all the redirects until the link terminates with a "200 OK".)
4. show that the program works on 3 different URIs, one of which
needs to be:
http://www.cs.odu.edu/~mln/teaching/cs532-s17/test/pdfs.html
3. Consider the "bow-tie" graph in the Broder et al. paper (fig 9):
http://www9.org/w9cdrom/160/160.html
Now consider the following graph:
A --> B
B --> C
C --> D
C --> A
C --> G
E --> F
G --> C
G --> H
I --> H
I --> K
L --> D
M --> A
M --> N
N --> D
O --> A
P --> G
For the above graph, give the values for:q
IN:
SCC:
OUT:
Tendrils:
Tubes:
Disconnected: