Ubuntu Pastebin

Paste from tsimonq2 at Tue, 29 Mar 2016 01:34:07 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
simon@semantic:~/uwn$ sudo apt -y install python-beautifulsoup
[sudo] password for simon: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  python-beautifulsoup
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 34.6 kB of archives.
After this operation, 164 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu xenial/universe amd64 python-beautifulsoup all 3.2.1-1 [34.6 kB]
Fetched 34.6 kB in 0s (60.4 kB/s)               
Selecting previously unselected package python-beautifulsoup.
(Reading database ... 131265 files and directories currently installed.)
Preparing to unpack .../python-beautifulsoup_3.2.1-1_all.deb ...
Unpacking python-beautifulsoup (3.2.1-1) ...
Setting up python-beautifulsoup (3.2.1-1) ...
simon@semantic:~/uwn$ python askubuntu/askubuntu.py 
/usr/local/lib/python2.7/dist-packages/bs4/__init__.py:166: UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("html.parser"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently.

To get rid of this warning, change this:

 BeautifulSoup([your markup])

to this:

 BeautifulSoup([your markup], "html.parser")

  markup_type=markup_type))
Traceback (most recent call last):
  File "askubuntu/askubuntu.py", line 30, in <module>
    print output
UnicodeEncodeError: 'ascii' codec can't encode character u'\u201c' in position 236: ordinal not in range(128)
Download as text