Errata

Mining the Social Web

Errata for Mining the Social Web

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
Other Digital Version Chapter 6 not loading in python notebook
Chapter 6 problem with notebook

Hi

I am new to this space, and have been enjoying working through your examples and book. It is very well written, and the virtual machine method of doing the examples is really great.

I am currently in chapter 6, and the python notebook does not come up for that chapter.

The error message says:
Error loading notebook
An unknown error occurred while loading this notebook. This version can load notebook formats v3 or earlier.

Is thios a version mismatch. I don't have a dev environment of my own. working within the virtual machine right now. to just see the code run. Then I will dive into creating my own environment/.?

Looking forward to your assistance or advice.

Thanks

_Veena

Anonymous  Nov 16, 2013 
PDF

Hi, I'm testing Chapter 2 by following the notebook in github having setup the virtual machine as per your instructions.

I get the error

---------------------------------------------------------------------------
ConnectionError Traceback (most recent call last)
<ipython-input-12-ea518ab0c3a2> in <module>()
19 # Interpret the response as JSON and convert back
20 # to Python data structures
---> 21 content = requests.get(url).json()
22
23 # Pretty-print the JSON and display it

/usr/local/lib/python2.7/dist-packages/requests/api.pyc in get(url, **kwargs)
53
54 kwargs.setdefault('allow_redirects', True)
---> 55 return request('get', url, **kwargs)
56
57

/usr/local/lib/python2.7/dist-packages/requests/api.pyc in request(method, url, **kwargs)
42
43 session = sessions.Session()
---> 44 return session.request(method=method, url=url, **kwargs)
45
46

/usr/local/lib/python2.7/dist-packages/requests/sessions.pyc in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert)
333 'allow_redirects': allow_redirects,
334 }
--> 335 resp = self.send(prep, **send_kwargs)
336
337 return resp

/usr/local/lib/python2.7/dist-packages/requests/sessions.pyc in send(self, request, **kwargs)
436 start = datetime.utcnow()
437 # Send the request
--> 438 r = adapter.send(request, **kwargs)
439 # Total elapsed time of the request (approximately)
440 r.elapsed = datetime.utcnow() - start

/usr/local/lib/python2.7/dist-packages/requests/adapters.pyc in send(self, request, stream, timeout, verify, cert, proxies)
325
326 except MaxRetryError as e:
--> 327 raise ConnectionError(e)
328
329 except (_SSLError, _HTTPError) as e:

ConnectionError: HTTPSConnectionPool(host='graph.facebook.com', port=443): Max retries exceeded with url: /me?fields=&access_token=CAACEdEose0cBAKU5AycSpP0NJLdJZBL0gPy6rPYMIiism9ZCtD40t5NZAJkNKOopUu6LahHdgi4ZCN3QMlaszTVWxWwDtADkLXSUXoz2G7D6UQdVqsMDEEDAfFVuxxedktJPzs2Q96RprhqqgafU6AsaljSFYhOJUCy7TZB8eUYFDGSzFjZBbHsdAyW8ProJCV1ZAdzG3VVhQZDZD (Caused by <class 'socket.gaierror'>: [Errno -3] Temporary failure in name resolution)

if I copy the url in the browser I get the correct result.

Could you please advise? Thank you.

Anonymous  Jun 17, 2014 
PDF Page 10
4th paragraph [For example...]

The instructions note that Twitter users are able to see what another user sees for his/her own timeline by affixing the 'following' suffix to the URL e.g. https://twitter.com/kmkelleher/following.

However, when 'following' is affixed to the end of the URL, instead of seeing another user's home feed, one would see all of the other Twitter accounts the user is following.

Kevin Kelleher  May 03, 2014 
PDF Page 11
2nd paragraph

Second sentence reads:

'If you don't...create onem..."

Kevin Kelleher  May 03, 2014 
PDF Page 16
last paragraph of text

twitter_api._trends.place(WORLD_WOE_ID) should be
twitter_api.trends.place(WORLD_WOE_ID)

Steve Nelson  Oct 25, 2013 
Printed Page 17
1st paragraph, starting at 2nd of 3rd line

"For example, twitter_api._trends.place(WORLD_WOE_ID) ... "

I don't believe there should be a "_" before the "trends.place(" code.

This won't run for anyone that types from the paragraph.

Anonymous  Dec 27, 2013 
PDF Page 23
Example 1-12

in example Example 1-12

c = Counter(words)

IMHO should read

c = Counter(data)

Stephen Gow  May 11, 2013 
PDF Page 60
example 2-2

I ran example 2-2. This results in an error message:

g = facebook.GraphAPI(ACCESS_TOKEN)
AttributeError: 'module' object has no attribute 'GraphAPI'

Anonymous  Oct 18, 2013 
Printed Page 65
3/4 of the way down 1st main paragraph (code proceeds)

The paragraph starts out with "The interesting analytical results ... are ... talking_about_count and like_count ..."

However, the JSON shown above only shows a "like" key (not like_count) with a value of 911.

I believe all instances (where there are at least two) of "like_count" should be "like"

jay  Jan 20, 2014