For one of our casino websites we're trying the BeautifulSoup module which
can handle HTML and XML. It should provide a simple method for searching,
navigating and modifying the parse tree. However? Can we store and push
this right away?
The example below prints all links on a webpage:
from BeautifulSoup import BeautifulSoup
import urllib2
import re
html_page = urllib2.urlopen("https://www.online-casino-spielautomaten.de")
soup = BeautifulSoup(html_page)
for link in soup.findAll('a', attrs={'href': re.compile("^http://")}):
print link.get('href')
It downloads the raw html code with the line:
html_page = urllib2.urlopen("https://www.online-casino-spielautomaten.de")
A BeautifulSoup object is created and we use this object to find all links:
soup = BeautifulSoup(html_page)
for link in soup.findAll('a', attrs={'href': re.compile("^http://")}):
print link.get('href')
The Buildbot has detected a failed build on builder aarch64 RHEL8 3.x while building python/cpython.
Full details are available at:
https://buildbot.python.org/all/#builders/529/builds/483
Buildbot URL: https://buildbot.python.org/all/
Worker for this Build: cstratak-RHEL8-aarch64
Build Reason: <unknown>
Blamelist: Jason R. Coombs <jaraco(a)jaraco.com>
BUILD FAILED: failed test (failure)
Summary of the results of the build (if available):
===================================================
== Tests result: ENV CHANGED ==
412 tests OK.
10 slowest tests:
- test_concurrent_futures: 3 min 59 sec
- test_capi: 3 min 16 sec
- test_peg_generator: 3 min
- test_unparse: 2 min 59 sec
- test_tokenize: 2 min 29 sec
- test_asyncio: 2 min 26 sec
- test_multiprocessing_spawn: 2 min 18 sec
- test_gdb: 2 min 11 sec
- test_lib2to3: 1 min 45 sec
- test_multiprocessing_forkserver: 1 min 29 sec
1 test altered the execution environment:
test_asyncio
13 tests skipped:
test_devpoll test_ioctl test_kqueue test_msilib test_ossaudiodev
test_startfile test_tix test_tk test_ttk_guionly test_winconsoleio
test_winreg test_winsound test_zipfile64
Total duration: 6 min 56 sec
Captured traceback
==================
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-aarch64/build/Lib/asyncio/sslproto.py", line 321, in __del__
self.close()
File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-aarch64/build/Lib/asyncio/sslproto.py", line 316, in close
self._ssl_protocol._start_shutdown()
File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-aarch64/build/Lib/asyncio/sslproto.py", line 590, in _start_shutdown
self._abort()
File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-aarch64/build/Lib/asyncio/sslproto.py", line 731, in _abort
self._transport.abort()
File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-aarch64/build/Lib/asyncio/selector_events.py", line 680, in abort
self._force_close(None)
File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-aarch64/build/Lib/asyncio/selector_events.py", line 731, in _force_close
self._loop.call_soon(self._call_connection_lost, exc)
File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-aarch64/build/Lib/asyncio/base_events.py", line 745, in call_soon
self._check_closed()
File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-aarch64/build/Lib/asyncio/base_events.py", line 510, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
Test report
===========
Sincerely,
-The Buildbot
The Buildbot has detected a new failure on builder s390x Fedora Refleaks 3.7 while building Python.
Full details are available at:
https://buildbot.python.org/all/#builders/520/builds/133
Buildbot URL: https://buildbot.python.org/all/
Worker for this Build: edelsohn-fedora-z
Build Reason: <unknown>
Blamelist:
BUILD FAILED: failed test (failure)
Summary of the results of the build (if available):
===================================================
== Tests result: FAILURE then FAILURE ==
400 tests OK.
10 slowest tests:
- test_concurrent_futures: 14 min 49 sec
- test_asyncio: 11 min 13 sec
- test_multiprocessing_spawn: 10 min 9 sec
- test_multiprocessing_forkserver: 7 min 18 sec
- test_multiprocessing_fork: 6 min 53 sec
- test_io: 3 min 28 sec
- test_subprocess: 3 min 4 sec
- test_gdb: 2 min 24 sec
- test_socket: 2 min 24 sec
- test_signal: 2 min 13 sec
1 test failed:
test_nntplib
15 tests skipped:
test_devpoll test_ioctl test_kqueue test_msilib test_nis
test_ossaudiodev test_readline test_startfile test_tix test_tk
test_ttk_guionly test_winconsoleio test_winreg test_winsound
test_zipfile64
1 re-run test:
test_nntplib
Total duration: 24 min 41 sec
Captured traceback
==================
Traceback (most recent call last):
File "/home/dje/cpython-buildarea/3.7.edelsohn-fedora-z.refleak/build/Lib/test/test_nntplib.py", line 250, in wrapped
meth(self)
File "/home/dje/cpython-buildarea/3.7.edelsohn-fedora-z.refleak/build/Lib/test/test_nntplib.py", line 99, in test_descriptions
desc = descs[self.GROUP_NAME]
KeyError: 'comp.lang.python'
Traceback (most recent call last):
File "/home/dje/cpython-buildarea/3.7.edelsohn-fedora-z.refleak/build/Lib/threading.py", line 926, in _bootstrap_inner
self.run()
File "/home/dje/cpython-buildarea/3.7.edelsohn-fedora-z.refleak/build/Lib/test/test_ssl.py", line 2478, in run
raise ssl.SSLError('tlsv13 alert certificate required')
ssl.SSLError: ('tlsv13 alert certificate required',)
Traceback (most recent call last):
File "/home/dje/cpython-buildarea/3.7.edelsohn-fedora-z.refleak/build/Lib/test/test_ssl.py", line 2392, in run
msg = self.read()
File "/home/dje/cpython-buildarea/3.7.edelsohn-fedora-z.refleak/build/Lib/test/test_ssl.py", line 2369, in read
return self.sslconn.read()
File "/home/dje/cpython-buildarea/3.7.edelsohn-fedora-z.refleak/build/Lib/ssl.py", line 931, in read
return self._sslobj.read(len)
ssl.SSLError: [SSL: PEER_DID_NOT_RETURN_A_CERTIFICATE] peer did not return a certificate (_ssl.c:2570)
Traceback (most recent call last):
File "/home/dje/cpython-buildarea/3.7.edelsohn-fedora-z.refleak/build/Lib/test/test_nntplib.py", line 250, in wrapped
meth(self)
File "/home/dje/cpython-buildarea/3.7.edelsohn-fedora-z.refleak/build/Lib/test/test_nntplib.py", line 85, in test_description
self.assertIn("Python", desc)
AssertionError: 'Python' not found in ''
Test report
===========
Failed tests:
- test_nntplib
Failed subtests:
- test_descriptions - test.test_nntplib.NetworkedNNTP_SSLTests
- test_description - test.test_nntplib.NetworkedNNTP_SSLTests
Sincerely,
-The Buildbot