- script to download forms (not perfect but it works)
authorZsolt Udvari <uzsolt@pld-linux.org>
Wed, 3 Nov 2010 22:02:37 +0000 (22:02 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    download -> 1.1

download [new file with mode: 0644]

diff --git a/download b/download
new file mode 100644 (file)
index 0000000..209bebb
--- /dev/null
+++ b/download
@@ -0,0 +1,6 @@
+#!/bin/bash
+for nyomtatvany in $(w3m -dump_source "http://www.apeh.hu/bevallasok/nyomtatvany/bevallasok?complex=false&allprograms=true" | \
+       grep "<a href.*bevallasok/nyomtatvany/bevallasok/[^<]*>[^<]*</a>" | sed "s@<a[^>]*>\([^<]*\).*@\1@"); do 
+       wget $(w3m -dump_source http://www.apeh.hu/bevallasok/nyomtatvany/bevallasok/$nyomtatvany.html | \
+               grep "$nyomtatvany .jar letöltése" | sed 's@<a href="\([^"]*\).*@www.apeh.hu\1@')
+done
This page took 0.027698 seconds and 4 git commands to generate.