blob: 4240f3ac7731cf111305b0740b6d5f4dcba9e796 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# This is demo script to continuousely download 4 articles
import fqterm
import sys, time
# f=open("/home/dp2/test.txt","w")
f = open("c:\\test.txt", "w")
lp=long(sys.argv[0])
for i in range(4):
fqterm.sendString(lp,"r")
time.sleep(1)
f.write(fqterm.getArticle(lp, 100)[0])
time.sleep(1)
fqterm.sendString(lp,"q")
time.sleep(1)
fqterm.sendString(lp,"j")
time.sleep(1)
f.close()
|