mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-16 08:04:26 -04:00
add form parser option
This commit is contained in:
parent
59d5423483
commit
5d7ad9b1b4
2 changed files with 10 additions and 2 deletions
|
@ -263,6 +263,7 @@ class AddView(UserPassesTestMixin, FormView):
|
|||
def form_valid(self, form):
|
||||
url = form.cleaned_data["url"]
|
||||
print(f'[+] Adding URL: {url}')
|
||||
parser = form.cleaned_data["parser"]
|
||||
tag = form.cleaned_data["tag"]
|
||||
depth = 0 if form.cleaned_data["depth"] == "0" else 1
|
||||
extractors = ','.join(form.cleaned_data["archive_methods"])
|
||||
|
@ -270,6 +271,7 @@ class AddView(UserPassesTestMixin, FormView):
|
|||
"urls": url,
|
||||
"tag": tag,
|
||||
"depth": depth,
|
||||
"parser": parser,
|
||||
"update_all": False,
|
||||
"out_dir": OUTPUT_DIR,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue