Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Quentin Aristote
Soundscapes
Commits
54ca8845
Commit
54ca8845
authored
Nov 29, 2019
by
Quentin Aristote
Browse files
corrected last page error
parent
9b066d52
Changes
1
Hide whitespace changes
Inline
Side-by-side
recordings/get_recordings.py
View file @
54ca8845
...
...
@@ -86,15 +86,18 @@ def getNextHTML(html_current) :
:param html_current: the initial HTML code to scrape for the next page."""
html
=
html_current
yield
html
td
=
html
.
find
(
'td'
,
attrs
=
{
'class'
:
'next'
})
button
=
html
.
find
(
'td'
,
attrs
=
{
'class'
:
'next'
})
while
td
:
url
=
HOSTNAME
+
td
.
find
(
'a'
)[
'href'
]
html
=
getHTML
(
url
)
yield
html
td
=
html
.
find
(
'td'
,
attrs
=
{
'class'
:
'next'
})
if
button
:
button
=
button
.
find
(
'a'
)
while
button
:
url
=
HOSTNAME
+
button
[
'href'
]
html
=
getHTML
(
url
)
yield
html
button
=
html
.
find
(
'td'
,
attrs
=
{
'class'
:
'next'
}).
find
(
'a'
)
def
getFilesIDs
(
html
)
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment