goodreasds
In [1]:
import requests
import os
import getpass
import xmltodict
import arrow
import bs4
#import couchdb
#import nltk
In [2]:
myusr = getpass.getuser()
In [3]:
myusr
Out[3]:
'pi'
In [4]:
para = {'key' : 'j6a7NN6aLyIGFrt9YHwibw', 'v': 2}
In [5]:
getreview = requests.get('https://www.goodreads.com/review/list/5753105.xml', params = para)
In [10]:
getreview.text
Out[10]:
'Invalid API key.\n<!-- This is a random-length HTML comment: xxswvkdezpcdzzdzsvosufdsvlkkfmgctesijfcayfoxypoiojdvwpalsypiuvliqfdbwfbsyapeltzvhxoenpepmlgytfytxedeorqhnjckqutyyoyjdycmwkutpvkmtxpxhrfwkuzpslknbztltbvuoylpsjjzbgoytbyqqqrqhuntffrkjwmgozzrkkkivddrtdggnlyprsxzvvuyqybujxbfewrjntnumnnaqjxhpqfheugfywoplupbykijxiwhqzgbszdkpjxzxzzwsmaiezzplkxiguuwvlehbkazesetdiogvecernlxnvsmjyjfwcfkvjadqsxjjbcpsldebjqfdrpujlhxgqtxxfprfstmmnrdbhvqhebxfiqloolusqlflmptabfuawdhloseotvbbzyvrpxxbsixkpyrqitudhokewbllgsqnocrvvtgasemjglvoqeudpwepnmaisprkvsjtkgejkfxinhulykuanxvlhhpgimibdcbfvksrrdvjhzeebphunqfmgvxqbtegstsawlqrkzxrcwwsimlkvceshjueqqvqyurdmvodvxtjaezkjkltwkujopdwjzhjsgiqvsoudwxxj -->'
In [6]:
revxml = xmltodict.parse(getreview.text)
---------------------------------------------------------------------------
ExpatError Traceback (most recent call last)
<ipython-input-6-a71d55b83963> in <module>()
----> 1 revxml = xmltodict.parse(getreview.text)
~/py3/lib/python3.5/site-packages/xmltodict.py in parse(xml_input, encoding, expat, process_namespaces, namespace_separator, disable_entities, **kwargs)
328 parser.ParseFile(xml_input)
329 else:
--> 330 parser.Parse(xml_input, True)
331 return handler.item
332
ExpatError: syntax error: line 1, column 0
In [7]:
print(revxml)
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-7-ee07ee2e877d> in <module>()
----> 1 print(revxml)
NameError: name 'revxml' is not defined
In [67]:
bookdica = dict()
In [68]:
for rev in range(20):
bookdic = revxml['GoodreadsResponse']['reviews']['review'][rev]['book']
#print(bookdic)
print(bookdic['isbn'])
print(bookdic['title'])
bktit = bookdic['title_without_series']
bknot = bktit.replace(' ', '-')
bklow = bknot.lower()
bookimg = bookdic['image_url']
print(bklow)
print(bookimg)
print(bookdic['authors']['author']['name'])
authimg = (bookdic['authors']['author']['image_url']['#text'])
bkdes = (revxml['GoodreadsResponse']['reviews']['review'][rev]['book']['description'])
soupdes = bs4.BeautifulSoup(bkdes)
print(soupdes.text)
#print(bookdic)
#bookdic.update({bookdic['isbn'] : dict({'isbn' : bookdic['isbn'], 'slug' : bklow, 'autname' : bookdic['authors']['author']['name']})})#'autimg' : authimg, 'bookimg' : bookimg})})
bookdica.update({str(bookdic['isbn']) : dict({'isbn' : bookdic['isbn'], 'num_pages' : bookdic['num_pages']})})
pubday = (bookdic['publication_day'])
pubmonth = (bookdic['publication_month'])
pubyear = (bookdic['publication_year'])
#pubyr = int(pubyear) + ',' + int(pubday) + ',' + int(pubmonth)
try:
ardate = arrow.get(int(pubyear), int(pubmonth), int(pubday))
#print(pubday + ',' + pubmonth + ',' + pubyear)
print(ardate)
print(ardate.humanize())
bookdic.update({bookdic : dict({'timestamp' : ardate, 'timehuman' : ardate.humanize()})})
except TypeError:
continue
#print(bookdic['authors']['author'])
#print(bookdic['authors']['author']['name'])
print(bookdic['num_pages'])
OrderedDict([('@nil', 'true')])
All the Breaking Waves
all-the-breaking-waves
https://images.gr-assets.com/books/1470750981m/31139576.jpg
Kerry Lonsdale
From the bestselling author of Everything We Keep comes a gripping tale of long-buried secrets, the strength of forgiveness, and the healing power of returning home for good.After a harrowing accident tore her family apart, Molly Brennan fled from the man she loved and the tragic mistake she made.Twelve years later, Molly has created a new life for herself and her eight-year-old daughter, Cassie. The art history professor crafts jewelry as unique and weathered as the surf-tumbled sea glass she collects, while raising her daughter in a safe and loving environment—something Molly never had. But when Cassie is plagued by horrific visions and debilitating nightmares, Molly is forced to return to the one place she swore she’d never move back to—home to Pacific Grove.A riveting exploration of love, secrets, and motherhood, All the Breaking Waves is the poignant story of a woman who discovers she must confront her past, let go of her guilt, and summon everything in her power to save her daughter.
1471400360
Paper Aeroplanes (Paper Aeroplanes, #1)
paper-aeroplanes
https://images.gr-assets.com/books/1366494917m/17315134.jpg
Dawn O'Porter
It's the mid-1990s, and fifteen year-old Guernsey schoolgirls, Renée and Flo, are not really meant to be friends. Thoughtful, introspective and studious Flo couldn't be more different to ambitious, extroverted and sexually curious Renée. But Renée and Flo are united by loneliness and their dysfunctional families, and an intense bond is formed. Although there are obstacles to their friendship (namely Flo's jealous ex-best friend and Renée's growing infatuation with Flo's brother), fifteen is an age where anything can happen, where life stretches out before you, and when every betrayal feels like the end of the world. For Renée and Flo it is the time of their lives.With graphic content and some scenes of a sexual nature, PAPER AEROPLANES is a gritty, poignant, often laugh-out-loud funny and powerful novel. It is an unforgettable snapshot of small-town adolescence and the heart-stopping power of female friendship.
2013-05-02T00:00:00+00:00
4 years ago
0141043768
What Alice Forgot
what-alice-forgot
https://images.gr-assets.com/books/1377159022m/6469165.jpg
Liane Moriarty
Alice Love is twenty-nine, crazy about her husband, and pregnant with her first child.So imagine Alice’s surprise when she comes to on the floor of a gym and is whisked off to the hospital where she discovers the honeymoon is truly over — she’s getting divorced, she has three kids and she’s actually 39 years old. Alice must reconstruct the events of a lost decade, and find out whether it’s possible to reconstruct her life at the same time. She has to figure out why her sister hardly talks to her, and how is it that she’s become one of those super skinny moms with really expensive clothes. Ultimately, Alice must discover whether forgetting is a blessing or a curse, and whether it’s possible to start over.
0670026603
Me Before You (Me Before You, #1)
me-before-you
https://images.gr-assets.com/books/1357108762m/15507958.jpg
Jojo Moyes
Louisa Clark is an ordinary young woman living an exceedingly ordinary life—steady boyfriend, close family—who has never been farther afield than their tiny village. She takes a badly needed job working for ex-Master of the Universe Will Traynor, who is wheelchair-bound after an accident. Will has always lived a huge life—big deals, extreme sports, worldwide travel—and now he’s pretty sure he cannot live the way he is. Will is acerbic, moody, bossy—but Lou refuses to treat him with kid gloves, and soon his happiness means more to her than she expected. When she learns that Will has shocking plans of his own, she sets out to show him that life is still worth living.A love story for this generation, Me Before You brings to life two people who couldn’t have less in common—a heartbreakingly romantic novel that asks, What do you do when making the person you love happy also means breaking your own heart?
2012-12-31T00:00:00+00:00
4 years ago
161984625X
The Color Project
the-color-project
https://images.gr-assets.com/books/1495203898m/22892448.jpg
Sierra Abrams
Bernice Aurora Wescott has one thing she doesn't want anyone to know: her name. That is, until Bee meets Levi, the local golden boy who runs a charity organization called The Color Project.Levi is not at all shy about attempting to guess Bee’s real name; his persistence is one of the many reasons why Bee falls for him. But while Levi is everything she never knew she needed, giving up her name would feel like a stamp on forever. And that terrifies her.When unexpected news of an illness in the family drains Bee's summer of everything bright, she is pushed to the breaking point. Losing herself in The Color Project—a world of weddings, funerals, cancer patients, and hopeful families that the charity funds—is no longer enough. Bee must hold up the weight of her family, but to do that, she needs Levi. She’ll have to give up her name and let him in completely or lose the best thing that’s ever happened to her.For fans of Stephanie Perkins and Morgan Matson, THE COLOR PROJECT is a story about the three great loves of life—family, friendship, and romance—and the bonds that withstand tragedy.
2017-08-17T00:00:00+00:00
22 days ago
0385497148
Waterfront: A Walk Around Manhattan
waterfront:-a-walk-around-manhattan
https://s.gr-assets.com/assets/nophoto/book/111x148-bcc042a9c91a29c1d680899eff700a03.png
Phillip Lopate
East Side, West Side, from the Little Red Lighthouse to Battery Park City, the wonders of Manhattan's waterfront are both celebrated and secret -- hidden in plain sight. In his brilliant exploration of this defining yet neglected shoreline, personal essayist Philip Lopate also recovers a part of the city's soul. A native New Yorker, Lopate has embraced Manhattan by walking every inch of its perimeter, telling stories on the way of pirates (Captain Kidd) and power brokers (Robert Moses), the lowly shipworm and Typhoid Mary, public housing in Harlem and the building of the Brooklyn Bridge. He evokes the magic of the once bustling old port from Melville's and Whitman's day to the era of the longshoremen in On the Waterfront, while appraising today's developers and environmental activists, and probing new plans for parks and pleasure domes with river views. Whether escorting us into unfamiliar, hazardous crannies or along a Beaux Arts esplanade, Waterfront is a grand literary ramble and defense of urban life by one of our most perceptive observers.
2005-05-10T00:00:00+00:00
12 years ago
0440211824
The Jade Pagoda
the-jade-pagoda
https://images.gr-assets.com/books/1364502669m/3316191.jpg
Marion Clarke
"His mansion was a maze of mysteries, his past a puzzle too dangerous to probe..."As Lesley Blair decorates the bridal suite of handsome widower Drake Wynfield in anticipation of his pending nuptials, she discovers that something is terribly wrong in his lavish home.
1992-11-01T00:00:00+00:00
24 years ago
0312330871
And Then There Were None
and-then-there-were-none
https://images.gr-assets.com/books/1391120695m/16299.jpg
Agatha Christie
First, there were ten - a curious assortment of strangers summoned as weekend guests to a private island off the coast of Devon. Their host, an eccentric millionaire unknown to all of them, is nowhere to be found. All that the guests have in common is a wicked past they're unwilling to reveal - and a secret that will seal their fate. For each has been marked for murder. One by one they fall prey. Before the weekend is out, there will be none. And only the dead are above suspicion.
0345418263
The Princess Bride
the-princess-bride
https://images.gr-assets.com/books/1327903636m/21787.jpg
William Goldman
What happens when the most beautiful girl in the world marries the handsomest prince of all time and he turns out to be...well...a lot less than the man of her dreams?As a boy, William Goldman claims, he loved to hear his father read the S. Morgenstern classic, The Princess Bride. But as a grown-up he discovered that the boring parts were left out of good old Dad's recitation, and only the "good parts" reached his ears.Now Goldman does Dad one better. He's reconstructed the "Good Parts Version" to delight wise kids and wide-eyed grownups everywhere.What's it about? Fencing. Fighting. True Love. Strong Hate. Harsh Revenge. A Few Giants. Lots of Bad Men. Lots of Good Men. Five or Six Beautiful Women. Beasties Monstrous and Gentle. Some Swell Escapes and Captures. Death, Lies, Truth, Miracles, and a Little Sex.In short, it's about everything.
2003-07-15T00:00:00+00:00
14 years ago
0671027344
The Perks of Being a Wallflower
the-perks-of-being-a-wallflower
https://images.gr-assets.com/books/1167352178m/22628.jpg
Stephen Chbosky
The critically acclaimed debut novel from Stephen Chbosky, Perks follows observant “wallflower” Charlie as he charts a course through the strange world between adolescence and adulthood. First dates, family drama, and new friends. Sex, drugs, and The Rocky Horror Picture Show. Devastating loss, young love, and life on the fringes. Caught between trying to live his life and trying to run from it, Charlie must learn to navigate those wild and poignant roller-coaster days known as growing up.
1999-02-01T00:00:00+00:00
18 years ago
0061120073
A Tree Grows in Brooklyn
a-tree-grows-in-brooklyn
https://images.gr-assets.com/books/1327883484m/14891.jpg
Betty Smith
The beloved American classic about a young girl's coming-of-age at the turn of the century, Betty Smith's A Tree Grows in Brooklyn is a poignant and moving tale filled with compassion and cruelty, laughter and heartache, crowded with life and people and incident. The story of young, sensitive, and idealistic Francie Nolan and her bittersweet formative years in the slums of Williamsburg has enchanted and inspired millions of readers for more than sixty years. By turns overwhelming, sublime, heartbreaking, and uplifting, the daily experiences of the unforgettable Nolans are raw with honesty and tenderly threaded with family connectedness -- in a work of literary art that brilliantly captures a unique time and place as well as incredibly rich moments of universal experience.
2006-05-30T00:00:00+00:00
11 years ago
OrderedDict([('@nil', 'true')])
Lolita
lolita
https://images.gr-assets.com/books/1377756377m/7604.jpg
Vladimir Nabokov
Humbert Humbert - scholar, aesthete and romantic - has fallen completely and utterly in love with Lolita Haze, his landlady's gum-snapping, silky skinned twelve-year-old daughter. Reluctantly agreeing to marry Mrs Haze just to be close to Lolita, Humbert suffers greatly in the pursuit of romance; but when Lo herself starts looking for attention elsewhere, he will carry her off on a desperate cross-country misadventure, all in the name of Love. Hilarious, flamboyant, heart-breaking and full of ingenious word play, Lolita is an immaculate, unforgettable masterpiece of obsession, delusion and lust.
0312577222
The Nightingale
the-nightingale
https://images.gr-assets.com/books/1451446316m/21853621.jpg
Kristin Hannah
Despite their differences, sisters Vianne and Isabelle have always been close. Younger, bolder Isabelle lives in Paris while Vianne is content with life in the French countryside with her husband Antoine and their daughter. But when the Second World War strikes, Antoine is sent off to fight and Vianne finds herself isolated so Isabelle is sent by their father to help her. As the war progresses, the sisters' relationship and strength are tested. With life changing in unbelievably horrific ways, Vianne and Isabelle will find themselves facing frightening situations and responding in ways they never thought possible as bravery and resistance take different forms in each of their actions.
2015-02-03T00:00:00+00:00
2 years ago
0385539258
A Little Life
a-little-life
https://images.gr-assets.com/books/1446469353m/22822858.jpg
Hanya Yanagihara
When four classmates from a small Massachusetts college move to New York to make their way, they're broke, adrift, and buoyed only by their friendship and ambition. There is kind, handsome Willem, an aspiring actor; JB, a quick-witted, sometimes cruel Brooklyn-born painter seeking entry to the art world; Malcolm, a frustrated architect at a prominent firm; and withdrawn, brilliant, enigmatic Jude, who serves as their center of gravity. Over the decades, their relationships deepen and darken, tinged by addiction, success, and pride. Yet their greatest challenge, each comes to realize, is Jude himself, by midlife a terrifyingly talented litigator yet an increasingly broken man, his mind and body scarred by an unspeakable childhood, and haunted by what he fears is a degree of trauma that he’ll not only be unable to overcome—but that will define his life forever.
2015-03-10T00:00:00+00:00
2 years ago
0007172893
Fludd
fludd
https://s.gr-assets.com/assets/nophoto/book/111x148-bcc042a9c91a29c1d680899eff700a03.png
Hilary Mantel
One dark and stormy night in 1956, a stranger named Fludd mysteriously turns up in the dismal village of Fetherhoughton. He is the curate sent by the bishop to assist Father Angwin-or is he? In the most unlikely of places, a superstitious town that understands little of romance or sentimentality, where bad blood between neighbors is ancient and impenetrable, miracles begin to bloom. No matter how copiously Father Angwin drinks while he confesses his broken faith, the level of the bottle does not drop. Although Fludd does not appear to be eating, the food on his plate disappears. Fludd becomes lover, gravedigger, and savior, transforming his dull office into a golden regency of decision, unashamed sensation, and unprecedented action. Knitting together the miraculous and the mundane, the dreadful and the ludicrous, Fludd is a tale of alchemy and transformation told with astonishing art, insight, humor, and wit.
0062278819
Prisoner of Night and Fog (Prisoner of Night and Fog, #1)
prisoner-of-night-and-fog
https://images.gr-assets.com/books/1395470671m/17668473.jpg
Anne Blankman
In 1930s Munich, danger lurks behind dark corners, and secrets are buried deep within the city. But Gretchen Müller, who grew up in the National Socialist Party under the wing of her "uncle" Dolf, has been shielded from that side of society ever since her father traded his life for Dolf's, and Gretchen is his favorite, his pet.Uncle Dolf is none other than Adolf Hitler. And Gretchen follows his every command.Until she meets a fearless and handsome young Jewish reporter named Daniel Cohen. Gretchen should despise Daniel, yet she can't stop herself from listening to his story: that her father, the adored Nazi martyr, was actually murdered by an unknown comrade. She also can't help the fierce attraction brewing between them, despite everything she's been taught to believe about Jews.As Gretchen investigates the very people she's always considered friends, she must decide where her loyalties lie. Will she choose the safety of her former life as a Nazi darling, or will she dare to dig up the truth—even if it could get her and Daniel killed?From debut author Anne Blankman comes this harrowing and evocative story about an ordinary girl faced with the extraordinary decision to give up everything she's ever believed . . . and to trust her own heart instead.
2014-04-22T00:00:00+00:00
3 years ago
0316405124
Wolf by Wolf (Wolf by Wolf, #1)
wolf-by-wolf
https://images.gr-assets.com/books/1424193184m/24807186.jpg
Ryan Graudin
Her story begins on a train.The year is 1956, and the Axis powers of the Third Reich and Imperial Japan rule. To commemorate their Great Victory, Hitler and Emperor Hirohito host the Axis Tour: an annual motorcycle race across their conjoined continents. The victor is awarded an audience with the highly reclusive Adolf Hitler at the Victor’s Ball in Tokyo.Yael, a former death camp prisoner, has witnessed too much suffering, and the five wolves tattooed on her arm are a constant reminder of the loved ones she lost. The resistance has given Yael one goal: Win the race and kill Hitler. A survivor of painful human experimentation, Yael has the power to skinshift and must complete her mission by impersonating last year’s only female racer, Adele Wolfe. This deception becomes more difficult when Felix, Adele twin’s brother, and Luka, her former love interest, enter the race and watch Yael’s every move.But as Yael grows closer to the other competitors, can she bring herself to be as ruthless as she needs to be to avoid discovery and complete her mission?From the author of The Walled City comes a fast-paced and innovative novel that will leave you breathless.
2015-10-20T00:00:00+00:00
2 years ago
0399171614
The Wrath and the Dawn (The Wrath and the Dawn, #1)
the-wrath-and-the-dawn
https://images.gr-assets.com/books/1417956963m/18798983.jpg
Renee Ahdieh
One Life to One Dawn.In a land ruled by a murderous boy-king, each dawn brings heartache to a new family. Khalid, the eighteen-year-old Caliph of Khorasan, is a monster. Each night he takes a new bride only to have a silk cord wrapped around her throat come morning. When sixteen-year-old Shahrzad's dearest friend falls victim to Khalid, Shahrzad vows vengeance and volunteers to be his next bride. Shahrzad is determined not only to stay alive, but to end the caliph's reign of terror once and for all.Night after night, Shahrzad beguiles Khalid, weaving stories that enchant, ensuring her survival, though she knows each dawn could be her last. But something she never expected begins to happen: Khalid is nothing like what she'd imagined him to be. This monster is a boy with a tormented heart. Incredibly, Shahrzad finds herself falling in love. How is this possible? It's an unforgivable betrayal. Still, Shahrzad has come to understand all is not as it seems in this palace of marble and stone. She resolves to uncover whatever secrets lurk and, despite her love, be ready to take Khalid's life as retribution for the many lives he's stolen. Can their love survive this world of stories and secrets?
2015-05-12T00:00:00+00:00
2 years ago
OrderedDict([('@nil', 'true')])
Perception of Life (Perception, #1)
perception-of-life
https://images.gr-assets.com/books/1493779760m/35054530.jpg
Shandi Boyes
Noah Taylor is on the cusp of stardom with his band 'Rise Up'. Noah's soul has been shattered beyond repair after a series of devastating family events. The last thing that Noah wants is a committed relationship. But Noah soon learns that life doesn't always work out the way you plan. Sometimes life can take you on a small detour. You will never want another book boyfriend after you meet Noah Taylor. This novel is sexy, gritty and a little bit raw. Please note this novel contains adult content, such as swear words and sexual references.
OrderedDict([('@nil', 'true')])
The Forever Broken
the-forever-broken
https://images.gr-assets.com/books/1500827937m/28373129.jpg
Ker Dukey
A BROKEN NOVELLA. Blaydon has been playing with fire when it comes to his best friend’s twin siblings, Quinn and Sofia. Sneaking behind everyone’s back to be with them both, he finds himself struggling to choose between them. But maybe it’s not his choice to make. When Sofia’s troubles become too much for her to bear, will a desperate act force their truths into the light? Some secrets are used to cover even more painful deceits and they are about to cost them all immeasurably.
2016-01-29T00:00:00+00:00
2 years ago
/usr/local/lib/python3.4/dist-packages/bs4/__init__.py:181: UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("lxml"). 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.
The code that caused this warning is on line 170 of the file /usr/lib/python3.4/runpy.py. To get rid of this warning, change code that looks like this:
BeautifulSoup(YOUR_MARKUP})
to this:
BeautifulSoup(YOUR_MARKUP, "lxml")
markup_type=markup_type))
In [49]:
paraz = {'api-key' : '177948e7f058537298a9a57b29ac0195:11:74111394', 'list': 'e-book-fiction'}
In [50]:
booklis = requests.get('https://api.nytimes.com/svc/books/v3/lists.json', params = paraz)
---------------------------------------------------------------------------
gaierror Traceback (most recent call last)
/usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, **response_kw)
515 timeout=timeout,
--> 516 body=body, headers=headers)
517
/usr/lib/python3/dist-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, **httplib_request_kw)
303 # Trigger any extra validation we need to do.
--> 304 self._validate_conn(conn)
305
/usr/lib/python3/dist-packages/urllib3/connectionpool.py in _validate_conn(self, conn)
723 if not getattr(conn, 'sock', None): # AppEngine might not have `.sock`
--> 724 conn.connect()
725
/usr/lib/python3/dist-packages/urllib3/connection.py in connect(self)
202 # Add certificate verification
--> 203 conn = self._new_conn()
204
/usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self)
132 conn = connection.create_connection(
--> 133 (self.host, self.port), self.timeout, **extra_kw)
134
/usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
63 err = None
---> 64 for res in socket.getaddrinfo(host, port, 0, socket.SOCK_STREAM):
65 af, socktype, proto, canonname, sa = res
/usr/lib/python3.4/socket.py in getaddrinfo(host, port, family, type, proto, flags)
529 addrlist = []
--> 530 for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
531 af, socktype, proto, canonname, sa = res
gaierror: [Errno -2] Name or service not known
During handling of the above exception, another exception occurred:
ProtocolError Traceback (most recent call last)
/usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
361 retries=Retry(self.max_retries, read=False),
--> 362 timeout=timeout
363 )
/usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, **response_kw)
558 retries = retries.increment(method, url, error=e,
--> 559 _pool=self, _stacktrace=stacktrace)
560 retries.sleep()
/usr/lib/python3/dist-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace)
244 if read is False:
--> 245 raise six.reraise(type(error), error, _stacktrace)
246 elif read is not None:
/usr/lib/python3/dist-packages/six.py in reraise(tp, value, tb)
623 if value.__traceback__ is not tb:
--> 624 raise value.with_traceback(tb)
625 raise value
/usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, **response_kw)
515 timeout=timeout,
--> 516 body=body, headers=headers)
517
/usr/lib/python3/dist-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, **httplib_request_kw)
303 # Trigger any extra validation we need to do.
--> 304 self._validate_conn(conn)
305
/usr/lib/python3/dist-packages/urllib3/connectionpool.py in _validate_conn(self, conn)
723 if not getattr(conn, 'sock', None): # AppEngine might not have `.sock`
--> 724 conn.connect()
725
/usr/lib/python3/dist-packages/urllib3/connection.py in connect(self)
202 # Add certificate verification
--> 203 conn = self._new_conn()
204
/usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self)
132 conn = connection.create_connection(
--> 133 (self.host, self.port), self.timeout, **extra_kw)
134
/usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
63 err = None
---> 64 for res in socket.getaddrinfo(host, port, 0, socket.SOCK_STREAM):
65 af, socktype, proto, canonname, sa = res
/usr/lib/python3.4/socket.py in getaddrinfo(host, port, family, type, proto, flags)
529 addrlist = []
--> 530 for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
531 af, socktype, proto, canonname, sa = res
ProtocolError: ('Connection aborted.', gaierror(-2, 'Name or service not known'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last)
<ipython-input-50-a7a60ec7b94e> in <module>()
----> 1 booklis = requests.get('https://api.nytimes.com/svc/books/v3/lists.json', params = paraz)
/usr/lib/python3/dist-packages/requests/api.py in get(url, **kwargs)
58
59 kwargs.setdefault('allow_redirects', True)
---> 60 return request('get', url, **kwargs)
61
62
/usr/lib/python3/dist-packages/requests/api.py in request(method, url, **kwargs)
47
48 session = sessions.Session()
---> 49 return session.request(method=method, url=url, **kwargs)
50
51
/usr/lib/python3/dist-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
455 }
456 send_kwargs.update(settings)
--> 457 resp = self.send(prep, **send_kwargs)
458
459 return resp
/usr/lib/python3/dist-packages/requests/sessions.py in send(self, request, **kwargs)
567
568 # Send the request
--> 569 r = adapter.send(request, **kwargs)
570
571 # Total elapsed time of the request (approximately)
/usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
405
406 except (ProtocolError, socket.error) as err:
--> 407 raise ConnectionError(err, request=request)
408
409 except MaxRetryError as e:
ConnectionError: ('Connection aborted.', gaierror(-2, 'Name or service not known'))
In [51]:
bookjs = booklis.json()
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-51-a0b3d435ed16> in <module>()
----> 1 bookjs = booklis.json()
AttributeError: 'list' object has no attribute 'json'
In [52]:
bookjs
Out[52]:
{'copyright': 'Copyright (c) 2017 The New York Times Company. All Rights Reserved.',
'last_modified': '2017-03-21T13:38:01-04:00',
'num_results': 15,
'results': [{'amazon_product_url': 'https://www.amazon.com/Full-Package-Lauren-Blakely-ebook/dp/B01MT5HMRV?tag=NYTBS-20',
'asterisk': 0,
'bestsellers_date': '2017-01-14',
'book_details': [{'age_group': '',
'author': 'Lauren Blakely',
'contributor': 'by Lauren Blakely',
'contributor_note': '',
'description': "A man shares a cramped apartment with his friend's fetching sister.",
'price': 0,
'primary_isbn10': 'None',
'primary_isbn13': 'A00B01MT5HMRV',
'publisher': 'Lauren Blakely',
'title': 'FULL PACKAGE'}],
'dagger': 0,
'display_name': 'E-Book Fiction',
'isbns': [],
'list_name': 'E-Book Fiction',
'published_date': '2017-01-29',
'rank': 1,
'rank_last_week': 0,
'reviews': [{'article_chapter_link': '',
'book_review_link': '',
'first_chapter_link': '',
'sunday_review_link': ''}],
'weeks_on_list': 1},
{'amazon_product_url': 'http://www.amazon.com/Guernsey-Literary-Potato-Peel-Society/dp/0385340990?tag=NYTBS-20',
'asterisk': 0,
'bestsellers_date': '2017-01-14',
'book_details': [{'age_group': '',
'author': 'Mary Ann Shaffer and Annie Barrows',
'contributor': 'by Mary Ann Shaffer and Annie Barrows',
'contributor_note': '',
'description': 'After World War II, a journalist travels to the island of Guernsey to meet residents who resisted the Nazi occupation. Originally published in 2008.',
'price': 0,
'primary_isbn10': '0440337976',
'primary_isbn13': '9780440337973',
'publisher': 'Dial',
'title': 'THE GUERNSEY LITERARY AND POTATO PEEL PIE SOCIETY'}],
'dagger': 0,
'display_name': 'E-Book Fiction',
'isbns': [{'isbn10': '0385341008', 'isbn13': '9780385341004'},
{'isbn10': '0440337976', 'isbn13': '9780440337973'}],
'list_name': 'E-Book Fiction',
'published_date': '2017-01-29',
'rank': 2,
'rank_last_week': 0,
'reviews': [{'article_chapter_link': '',
'book_review_link': '',
'first_chapter_link': '',
'sunday_review_link': ''}],
'weeks_on_list': 2},
{'amazon_product_url': 'https://www.amazon.com/Whistler-John-Grisham-ebook/dp/B01C1LUFFK?tag=NYTBS-20',
'asterisk': 0,
'bestsellers_date': '2017-01-14',
'book_details': [{'age_group': '',
'author': 'John Grisham',
'contributor': 'by John Grisham',
'contributor_note': '',
'description': 'A whistleblower alerts a Florida investigator to judicial corruption involving the Mob and Indian casinos.',
'price': 0,
'primary_isbn10': '0385541201',
'primary_isbn13': '9780385541206',
'publisher': 'Doubleday',
'title': 'THE WHISTLER'}],
'dagger': 0,
'display_name': 'E-Book Fiction',
'isbns': [{'isbn10': '0385541198', 'isbn13': '9780385541190'},
{'isbn10': '0385541201', 'isbn13': '9780385541206'},
{'isbn10': '0385541570', 'isbn13': '9780385541572'},
{'isbn10': '1101967676', 'isbn13': '9781101967676'},
{'isbn10': '1101967684', 'isbn13': '9781101967683'}],
'list_name': 'E-Book Fiction',
'published_date': '2017-01-29',
'rank': 3,
'rank_last_week': 4,
'reviews': [{'article_chapter_link': '',
'book_review_link': 'https://www.nytimes.com/2016/11/06/books/review/john-grisham-whistler.html',
'first_chapter_link': '',
'sunday_review_link': ''}],
'weeks_on_list': 12},
{'amazon_product_url': 'https://www.amazon.com/Ring-Fire-Pike-Logan-Thriller/dp/1101984767?tag=NYTBS-20',
'asterisk': 0,
'bestsellers_date': '2017-01-14',
'book_details': [{'age_group': '',
'author': 'Brad Taylor',
'contributor': 'by Brad Taylor',
'contributor_note': '',
'description': 'Pike Logan, a member of a secret counterterrorist unit called the Taskforce, investigates a Saudi-backed Moroccan terrorist cell.',
'price': 0,
'primary_isbn10': 'None',
'primary_isbn13': '9781101984772',
'publisher': 'Dutton',
'title': 'RING OF FIRE'}],
'dagger': 0,
'display_name': 'E-Book Fiction',
'isbns': [{'isbn10': '1101984767', 'isbn13': '9781101984765'}],
'list_name': 'E-Book Fiction',
'published_date': '2017-01-29',
'rank': 4,
'rank_last_week': 0,
'reviews': [{'article_chapter_link': '',
'book_review_link': '',
'first_chapter_link': '',
'sunday_review_link': ''}],
'weeks_on_list': 1},
{'amazon_product_url': 'http://www.amazon.com/Small-Great-Things-Jodi-Picoult-ebook/dp/B01AQNYZ3I?tag=NYTBS-20',
'asterisk': 0,
'bestsellers_date': '2017-01-14',
'book_details': [{'age_group': '',
'author': 'Jodi Picoult',
'contributor': 'by Jodi Picoult',
'contributor_note': '',
'description': 'A medical crisis entangles a black nurse, a white supremacist father and a white lawyer.',
'price': 0,
'primary_isbn10': '034554496X',
'primary_isbn13': '9780345544964',
'publisher': 'Ballantine',
'title': 'SMALL GREAT THINGS'}],
'dagger': 0,
'display_name': 'E-Book Fiction',
'isbns': [{'isbn10': '0345544951', 'isbn13': '9780345544957'},
{'isbn10': '034554496X', 'isbn13': '9780345544964'},
{'isbn10': '1410463745', 'isbn13': '9781410463746'},
{'isbn10': '0425286010', 'isbn13': '9780425286012'}],
'list_name': 'E-Book Fiction',
'published_date': '2017-01-29',
'rank': 5,
'rank_last_week': 7,
'reviews': [{'article_chapter_link': '',
'book_review_link': 'https://www.nytimes.com/2016/10/16/books/review/jodi-picoult-small-great-things-roxane-gay.html',
'first_chapter_link': '',
'sunday_review_link': ''}],
'weeks_on_list': 9},
{'amazon_product_url': 'https://www.amazon.com/Shelter-Adeline-Badge-Honor-Heroes-ebook/dp/B01MF62CN8?tag=NYTBS-20',
'asterisk': 0,
'bestsellers_date': '2017-01-14',
'book_details': [{'age_group': '',
'author': 'Susan Stoker',
'contributor': 'by Susan Stoker',
'contributor_note': '',
'description': 'A fireman must keep his overprotective nature in check while pursuing an epileptic prey to her suspiciously obsessive boss.',
'price': 0,
'primary_isbn10': 'None',
'primary_isbn13': 'A00B01MF62CN8',
'publisher': 'Stoker Aces Production',
'title': 'SHELTER FOR ADELINE'}],
'dagger': 0,
'display_name': 'E-Book Fiction',
'isbns': [],
'list_name': 'E-Book Fiction',
'published_date': '2017-01-29',
'rank': 6,
'rank_last_week': 0,
'reviews': [{'article_chapter_link': '',
'book_review_link': '',
'first_chapter_link': '',
'sunday_review_link': ''}],
'weeks_on_list': 1},
{'amazon_product_url': 'http://www.amazon.com/Man-Called-Ove-Novel/dp/1476738025?tag=NYTBS-20',
'asterisk': 0,
'bestsellers_date': '2017-01-14',
'book_details': [{'age_group': '',
'author': 'Fredrik Backman',
'contributor': 'by Fredrik Backman',
'contributor_note': '',
'description': 'An angry old curmudgeon gets new neighbors, and things are about to change for all of them.',
'price': 0,
'primary_isbn10': 'None',
'primary_isbn13': '9781476738031',
'publisher': 'Atria',
'title': 'A MAN CALLED OVE'}],
'dagger': 0,
'display_name': 'E-Book Fiction',
'isbns': [{'isbn10': '1476738025', 'isbn13': '9781476738024'},
{'isbn10': '1476738017', 'isbn13': '9781476738017'},
{'isbn10': '1594139830', 'isbn13': '9781594139833'},
{'isbn10': '1410472922', 'isbn13': '9781410472922'}],
'list_name': 'E-Book Fiction',
'published_date': '2017-01-29',
'rank': 7,
'rank_last_week': 9,
'reviews': [{'article_chapter_link': '',
'book_review_link': '',
'first_chapter_link': '',
'sunday_review_link': ''}],
'weeks_on_list': 3},
{'amazon_product_url': 'https://www.amazon.com/Mistress-Novel-Danielle-Steel-ebook/dp/B01E2GZ5FC?tag=NYTBS-20',
'asterisk': 0,
'bestsellers_date': '2017-01-14',
'book_details': [{'age_group': '',
'author': 'Danielle Steel',
'contributor': 'by Danielle Steel',
'contributor_note': '',
'description': 'The beautiful mistress of a Russian oligarch falls in love with an artist and yearns for freedom.',
'price': 0,
'primary_isbn10': '0425285359',
'primary_isbn13': '9780425285350',
'publisher': 'Delacorte',
'title': 'THE MISTRESS'}],
'dagger': 0,
'display_name': 'E-Book Fiction',
'isbns': [{'isbn10': '0345531116', 'isbn13': '9780345531117'},
{'isbn10': '0425285359', 'isbn13': '9780425285350'},
{'isbn10': '0735210039', 'isbn13': '9780735210035'}],
'list_name': 'E-Book Fiction',
'published_date': '2017-01-29',
'rank': 8,
'rank_last_week': 2,
'reviews': [{'article_chapter_link': '',
'book_review_link': '',
'first_chapter_link': '',
'sunday_review_link': ''}],
'weeks_on_list': 2},
{'amazon_product_url': 'https://www.amazon.com/Guests-South-Battery-Tradd-Street/dp/0451475232?tag=NYTBS-20',
'asterisk': 0,
'bestsellers_date': '2017-01-14',
'book_details': [{'age_group': '',
'author': 'Karen White',
'contributor': 'by Karen White',
'contributor_note': '',
'description': 'Spirits invade the life of a Charleston realtor.',
'price': 0,
'primary_isbn10': '',
'primary_isbn13': '9780698193000',
'publisher': 'Berkley',
'title': 'THE GUESTS ON SOUTH BATTERY'}],
'dagger': 0,
'display_name': 'E-Book Fiction',
'isbns': [{'isbn10': '0451475232', 'isbn13': '9780451475237'}],
'list_name': 'E-Book Fiction',
'published_date': '2017-01-29',
'rank': 9,
'rank_last_week': 0,
'reviews': [{'article_chapter_link': '',
'book_review_link': '',
'first_chapter_link': '',
'sunday_review_link': ''}],
'weeks_on_list': 1},
{'amazon_product_url': 'https://www.amazon.com/No-Mans-Land-John-Puller/dp/145558651X?tag=NYTBS-20',
'asterisk': 0,
'bestsellers_date': '2017-01-14',
'book_details': [{'age_group': '',
'author': 'David Baldacci',
'contributor': 'by David Baldacci',
'contributor_note': '',
'description': 'John Puller, a special agent with the Army, searches for the truth about his mother, who disappeared 30 years ago.',
'price': 0,
'primary_isbn10': '1455586498',
'primary_isbn13': '9781455586493',
'publisher': 'Grand Central',
'title': "NO MAN'S LAND"}],
'dagger': 0,
'display_name': 'E-Book Fiction',
'isbns': [{'isbn10': '145558651X', 'isbn13': '9781455586516'},
{'isbn10': '1455541664', 'isbn13': '9781455541669'},
{'isbn10': '1455586498', 'isbn13': '9781455586493'},
{'isbn10': '1455586501', 'isbn13': '9781455586509'}],
'list_name': 'E-Book Fiction',
'published_date': '2017-01-29',
'rank': 10,
'rank_last_week': 0,
'reviews': [{'article_chapter_link': '',
'book_review_link': '',
'first_chapter_link': '',
'sunday_review_link': ''}],
'weeks_on_list': 8},
{'amazon_product_url': 'https://www.amazon.com/Below-Belt-Stone-Barrington-Novel/dp/0399573976?tag=NYTBS-20',
'asterisk': 0,
'bestsellers_date': '2017-01-14',
'book_details': [{'age_group': '',
'author': 'Stuart Woods',
'contributor': 'by Stuart Woods',
'contributor_note': '',
'description': 'The New York lawyer Stone Barrington faces danger when he finds himself in possession of a retired C.I.A. agent’s explosive memoir.',
'price': 0,
'primary_isbn10': 'None',
'primary_isbn13': '9780399574184',
'publisher': 'Putnam',
'title': 'BELOW THE BELT'}],
'dagger': 0,
'display_name': 'E-Book Fiction',
'isbns': [{'isbn10': '0399573976', 'isbn13': '9780399573972'}],
'list_name': 'E-Book Fiction',
'published_date': '2017-01-29',
'rank': 11,
'rank_last_week': 0,
'reviews': [{'article_chapter_link': '',
'book_review_link': '',
'first_chapter_link': '',
'sunday_review_link': ''}],
'weeks_on_list': 0},
{'amazon_product_url': 'https://www.amazon.com/Cross-Line-James-Patterson-ebook/dp/B01C37XEUU?tag=NYTBS-20',
'asterisk': 0,
'bestsellers_date': '2017-01-14',
'book_details': [{'age_group': '',
'author': 'James Patterson',
'contributor': 'by James Patterson',
'contributor_note': '',
'description': 'Detective Alex Cross and his wife, Bree, team up to catch a killer causing chaos in Washington, D.C.',
'price': 0,
'primary_isbn10': '031640716X',
'primary_isbn13': '9780316407168',
'publisher': 'Little, Brown',
'title': 'CROSS THE LINE'}],
'dagger': 0,
'display_name': 'E-Book Fiction',
'isbns': [{'isbn10': '0316407097', 'isbn13': '9780316407090'},
{'isbn10': '031640716X', 'isbn13': '9780316407168'},
{'isbn10': '0316407151', 'isbn13': '9780316407151'}],
'list_name': 'E-Book Fiction',
'published_date': '2017-01-29',
'rank': 12,
'rank_last_week': 0,
'reviews': [{'article_chapter_link': '',
'book_review_link': '',
'first_chapter_link': '',
'sunday_review_link': ''}],
'weeks_on_list': 0},
{'amazon_product_url': 'https://www.amazon.com/Dry-Novel-Jane-Harper-ebook/dp/B01BSN15F6?tag=NYTBS-20',
'asterisk': 0,
'bestsellers_date': '2017-01-14',
'book_details': [{'age_group': '',
'author': 'Jane Harper',
'contributor': 'by Jane Harper',
'contributor_note': '',
'description': '',
'price': 0,
'primary_isbn10': '1250105617',
'primary_isbn13': '9781250105615',
'publisher': 'Flatiron',
'title': 'THE DRY'}],
'dagger': 0,
'display_name': 'E-Book Fiction',
'isbns': [{'isbn10': '1250105609', 'isbn13': '9781250105608'},
{'isbn10': '1250105617', 'isbn13': '9781250105615'}],
'list_name': 'E-Book Fiction',
'published_date': '2017-01-29',
'rank': 13,
'rank_last_week': 0,
'reviews': [{'article_chapter_link': '',
'book_review_link': '',
'first_chapter_link': '',
'sunday_review_link': ''}],
'weeks_on_list': 0},
{'amazon_product_url': 'https://www.amazon.com/Dogs-Purpose-Novel-Humans/dp/0765330342?tag=NYTBS-20',
'asterisk': 0,
'bestsellers_date': '2017-01-14',
'book_details': [{'age_group': '',
'author': 'W Bruce Cameron',
'contributor': 'by W. Bruce Cameron',
'contributor_note': '',
'description': 'A canine narrator undergoes a series of reincarnations.',
'price': 0,
'primary_isbn10': '1429960272',
'primary_isbn13': '9781429960274',
'publisher': 'Forge',
'title': "A DOG'S PURPOSE"}],
'dagger': 0,
'display_name': 'E-Book Fiction',
'isbns': [{'isbn10': '0765326264', 'isbn13': '9780765326263'},
{'isbn10': '0765330342', 'isbn13': '9780765330345'},
{'isbn10': '0765388111', 'isbn13': '9780765388117'},
{'isbn10': '0765388103', 'isbn13': '9780765388100'},
{'isbn10': '1429960272', 'isbn13': '9781429960274'}],
'list_name': 'E-Book Fiction',
'published_date': '2017-01-29',
'rank': 14,
'rank_last_week': 0,
'reviews': [{'article_chapter_link': '',
'book_review_link': '',
'first_chapter_link': '',
'sunday_review_link': ''}],
'weeks_on_list': 0},
{'amazon_product_url': 'https://www.amazon.com/Sleepwalker-Novel-Chris-Bohjalian-ebook/dp/B01FPGY5TK?tag=NYTBS-20',
'asterisk': 0,
'bestsellers_date': '2017-01-14',
'book_details': [{'age_group': '',
'author': 'Chris Bohjalian',
'contributor': 'by Chris Bohjalian',
'contributor_note': '',
'description': 'The daughters of a Vermont woman who disappeared from her home in the middle of the night try to understand what happened.',
'price': 0,
'primary_isbn10': '0385538928',
'primary_isbn13': '9780385538923',
'publisher': 'Doubleday',
'title': 'THE SLEEPWALKER'}],
'dagger': 0,
'display_name': 'E-Book Fiction',
'isbns': [{'isbn10': '038553891X', 'isbn13': '9780385538916'},
{'isbn10': '0385538928', 'isbn13': '9780385538923'}],
'list_name': 'E-Book Fiction',
'published_date': '2017-01-29',
'rank': 15,
'rank_last_week': 0,
'reviews': [{'article_chapter_link': '',
'book_review_link': '',
'first_chapter_link': '',
'sunday_review_link': ''}],
'weeks_on_list': 0}],
'status': 'OK'}
In [53]:
booklis = list()
In [54]:
for bores in bookjs['results']:
#for bor in bores:
print(bores['book_details'])
booklis.append(bores['book_details'])
#print(bores['book_details'][0]['title'])
# print(bor)
#print(bores['book_details'][bor]['author'])
[{'age_group': '', 'price': 0, 'publisher': 'Lauren Blakely', 'primary_isbn13': 'A00B01MT5HMRV', 'author': 'Lauren Blakely', 'contributor': 'by Lauren Blakely', 'title': 'FULL PACKAGE', 'contributor_note': '', 'description': "A man shares a cramped apartment with his friend's fetching sister.", 'primary_isbn10': 'None'}]
[{'age_group': '', 'price': 0, 'publisher': 'Dial', 'primary_isbn13': '9780440337973', 'author': 'Mary Ann Shaffer and Annie Barrows', 'contributor': 'by Mary Ann Shaffer and Annie Barrows', 'title': 'THE GUERNSEY LITERARY AND POTATO PEEL PIE SOCIETY', 'contributor_note': '', 'description': 'After World War II, a journalist travels to the island of Guernsey to meet residents who resisted the Nazi occupation. Originally published in 2008.', 'primary_isbn10': '0440337976'}]
[{'age_group': '', 'price': 0, 'publisher': 'Doubleday', 'primary_isbn13': '9780385541206', 'author': 'John Grisham', 'contributor': 'by John Grisham', 'title': 'THE WHISTLER', 'contributor_note': '', 'description': 'A whistleblower alerts a Florida investigator to judicial corruption involving the Mob and Indian casinos.', 'primary_isbn10': '0385541201'}]
[{'age_group': '', 'price': 0, 'publisher': 'Dutton', 'primary_isbn13': '9781101984772', 'author': 'Brad Taylor', 'contributor': 'by Brad Taylor', 'title': 'RING OF FIRE', 'contributor_note': '', 'description': 'Pike Logan, a member of a secret counterterrorist unit called the Taskforce, investigates a Saudi-backed Moroccan terrorist cell.', 'primary_isbn10': 'None'}]
[{'age_group': '', 'price': 0, 'publisher': 'Ballantine', 'primary_isbn13': '9780345544964', 'author': 'Jodi Picoult', 'contributor': 'by Jodi Picoult', 'title': 'SMALL GREAT THINGS', 'contributor_note': '', 'description': 'A medical crisis entangles a black nurse, a white supremacist father and a white lawyer.', 'primary_isbn10': '034554496X'}]
[{'age_group': '', 'price': 0, 'publisher': 'Stoker Aces Production', 'primary_isbn13': 'A00B01MF62CN8', 'author': 'Susan Stoker', 'contributor': 'by Susan Stoker', 'title': 'SHELTER FOR ADELINE', 'contributor_note': '', 'description': 'A fireman must keep his overprotective nature in check while pursuing an epileptic prey to her suspiciously obsessive boss.', 'primary_isbn10': 'None'}]
[{'age_group': '', 'price': 0, 'publisher': 'Atria', 'primary_isbn13': '9781476738031', 'author': 'Fredrik Backman', 'contributor': 'by Fredrik Backman', 'title': 'A MAN CALLED OVE', 'contributor_note': '', 'description': 'An angry old curmudgeon gets new neighbors, and things are about to change for all of them.', 'primary_isbn10': 'None'}]
[{'age_group': '', 'price': 0, 'publisher': 'Delacorte', 'primary_isbn13': '9780425285350', 'author': 'Danielle Steel', 'contributor': 'by Danielle Steel', 'title': 'THE MISTRESS', 'contributor_note': '', 'description': 'The beautiful mistress of a Russian oligarch falls in love with an artist and yearns for freedom.', 'primary_isbn10': '0425285359'}]
[{'age_group': '', 'price': 0, 'publisher': 'Berkley', 'primary_isbn13': '9780698193000', 'author': 'Karen White', 'contributor': 'by Karen White', 'title': 'THE GUESTS ON SOUTH BATTERY', 'contributor_note': '', 'description': 'Spirits invade the life of a Charleston realtor.', 'primary_isbn10': ''}]
[{'age_group': '', 'price': 0, 'publisher': 'Grand Central', 'primary_isbn13': '9781455586493', 'author': 'David Baldacci', 'contributor': 'by David Baldacci', 'title': "NO MAN'S LAND", 'contributor_note': '', 'description': 'John Puller, a special agent with the Army, searches for the truth about his mother, who disappeared 30 years ago.', 'primary_isbn10': '1455586498'}]
[{'age_group': '', 'price': 0, 'publisher': 'Putnam', 'primary_isbn13': '9780399574184', 'author': 'Stuart Woods', 'contributor': 'by Stuart Woods', 'title': 'BELOW THE BELT', 'contributor_note': '', 'description': 'The New York lawyer Stone Barrington faces danger when he finds himself in possession of a retired C.I.A. agent’s explosive memoir.', 'primary_isbn10': 'None'}]
[{'age_group': '', 'price': 0, 'publisher': 'Little, Brown', 'primary_isbn13': '9780316407168', 'author': 'James Patterson', 'contributor': 'by James Patterson', 'title': 'CROSS THE LINE', 'contributor_note': '', 'description': 'Detective Alex Cross and his wife, Bree, team up to catch a killer causing chaos in Washington, D.C.', 'primary_isbn10': '031640716X'}]
[{'age_group': '', 'price': 0, 'publisher': 'Flatiron', 'primary_isbn13': '9781250105615', 'author': 'Jane Harper', 'contributor': 'by Jane Harper', 'title': 'THE DRY', 'contributor_note': '', 'description': '', 'primary_isbn10': '1250105617'}]
[{'age_group': '', 'price': 0, 'publisher': 'Forge', 'primary_isbn13': '9781429960274', 'author': 'W Bruce Cameron', 'contributor': 'by W. Bruce Cameron', 'title': "A DOG'S PURPOSE", 'contributor_note': '', 'description': 'A canine narrator undergoes a series of reincarnations.', 'primary_isbn10': '1429960272'}]
[{'age_group': '', 'price': 0, 'publisher': 'Doubleday', 'primary_isbn13': '9780385538923', 'author': 'Chris Bohjalian', 'contributor': 'by Chris Bohjalian', 'title': 'THE SLEEPWALKER', 'contributor_note': '', 'description': 'The daughters of a Vermont woman who disappeared from her home in the middle of the night try to understand what happened.', 'primary_isbn10': '0385538928'}]
Get Goodreads book IDs given ISBNs Get Goodreads book IDs given one or more ISBNs. Response contains IDs without any markup. URL: https://www.goodreads.com/book/isbn_to_id (sample url) HTTP method: GET Parameters:
key: Developer key (required).
isbn: ISBNs of books to look up.
Get Goodreads work IDs g
In [55]:
para = {'key' : 'j6a7NN6aLyIGFrt9YHwibw', 'v': 2}
In [56]:
newsnip = dict()
In [57]:
for bok in booklis:
#print(bok)
for bo in bok:
#print(bo)
print(bo)
botit = (bo['title'])
bonow = botit.replace(' ', '-')
gifparm = {'q' : botit, 'api_key' : 'dc6zaTOxFJmzC'}
reqgif = requests.get('http://api.giphy.com/v1/gifs/search', params = gifparm)
gifjs = (reqgif.json())
print(gifjs['data'][0]['images']['fixed_width'])#['images'])
print(botit.capitalize())
print(bo['description'])
print(bo['author'])
print(bo['publisher'])
newdic = {'api-key' : '177948e7f058537298a9a57b29ac0195:11:74111394', 'q' : bonow, 'sort' : 'newest'}
newnews = requests.get('https://api.nytimes.com/svc/search/v2/articlesearch.json', params = newdic)
newsjs = (newnews.json())
newdocs = newsjs['response']['docs']
for newd in newdocs:
print(newd)
print(newd['headline']['print_headline'])
newsnip.update({botit : dict({'printhead' : newd['headline']['print_headline'], 'snippet' : newd['snippet']})})
print(newd['snippet'])
#print(bo['primary_isbn13'])
#print(bo['primary_isbn10'])
#paraisb = {'key' : 'j6a7NN6aLyIGFrt9YHwibw', 'isbn': bo['primary_isbn13']}
#reqgdr = requests.get('https://www.goodreads.com/book/isbn_to_id', params = paraisb)
#print(reqgdr.text)
#reqb = {'key' : 'j6a7NN6aLyIGFrt9YHwibw', 'q' : (bo['title'])}
#reqsbib = requests.get('https://www.goodreads.com/search/index.xml', params = reqb)
#print(reqsbib.text)
{'age_group': '', 'price': 0, 'publisher': 'Lauren Blakely', 'primary_isbn13': 'A00B01MT5HMRV', 'author': 'Lauren Blakely', 'contributor': 'by Lauren Blakely', 'title': 'FULL PACKAGE', 'contributor_note': '', 'description': "A man shares a cramped apartment with his friend's fetching sister.", 'primary_isbn10': 'None'}
---------------------------------------------------------------------------
gaierror Traceback (most recent call last)
/usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, **response_kw)
515 timeout=timeout,
--> 516 body=body, headers=headers)
517
/usr/lib/python3/dist-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, **httplib_request_kw)
307 # urllib3.request. It also calls makefile (recv) on the socket.
--> 308 conn.request(method, url, **httplib_request_kw)
309
/usr/lib/python3.4/http/client.py in request(self, method, url, body, headers)
1089 """Send a complete request to the server."""
-> 1090 self._send_request(method, url, body, headers)
1091
/usr/lib/python3.4/http/client.py in _send_request(self, method, url, body, headers)
1127 body = body.encode('iso-8859-1')
-> 1128 self.endheaders(body)
1129
/usr/lib/python3.4/http/client.py in endheaders(self, message_body)
1085 raise CannotSendHeader()
-> 1086 self._send_output(message_body)
1087
/usr/lib/python3.4/http/client.py in _send_output(self, message_body)
923 message_body = None
--> 924 self.send(msg)
925 if message_body is not None:
/usr/lib/python3.4/http/client.py in send(self, data)
858 if self.auto_open:
--> 859 self.connect()
860 else:
/usr/lib/python3/dist-packages/urllib3/connection.py in connect(self)
153 def connect(self):
--> 154 conn = self._new_conn()
155 self._prepare_conn(conn)
/usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self)
132 conn = connection.create_connection(
--> 133 (self.host, self.port), self.timeout, **extra_kw)
134
/usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
63 err = None
---> 64 for res in socket.getaddrinfo(host, port, 0, socket.SOCK_STREAM):
65 af, socktype, proto, canonname, sa = res
/usr/lib/python3.4/socket.py in getaddrinfo(host, port, family, type, proto, flags)
529 addrlist = []
--> 530 for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
531 af, socktype, proto, canonname, sa = res
gaierror: [Errno -2] Name or service not known
During handling of the above exception, another exception occurred:
ProtocolError Traceback (most recent call last)
/usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
361 retries=Retry(self.max_retries, read=False),
--> 362 timeout=timeout
363 )
/usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, **response_kw)
558 retries = retries.increment(method, url, error=e,
--> 559 _pool=self, _stacktrace=stacktrace)
560 retries.sleep()
/usr/lib/python3/dist-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace)
244 if read is False:
--> 245 raise six.reraise(type(error), error, _stacktrace)
246 elif read is not None:
/usr/lib/python3/dist-packages/six.py in reraise(tp, value, tb)
623 if value.__traceback__ is not tb:
--> 624 raise value.with_traceback(tb)
625 raise value
/usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, **response_kw)
515 timeout=timeout,
--> 516 body=body, headers=headers)
517
/usr/lib/python3/dist-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, **httplib_request_kw)
307 # urllib3.request. It also calls makefile (recv) on the socket.
--> 308 conn.request(method, url, **httplib_request_kw)
309
/usr/lib/python3.4/http/client.py in request(self, method, url, body, headers)
1089 """Send a complete request to the server."""
-> 1090 self._send_request(method, url, body, headers)
1091
/usr/lib/python3.4/http/client.py in _send_request(self, method, url, body, headers)
1127 body = body.encode('iso-8859-1')
-> 1128 self.endheaders(body)
1129
/usr/lib/python3.4/http/client.py in endheaders(self, message_body)
1085 raise CannotSendHeader()
-> 1086 self._send_output(message_body)
1087
/usr/lib/python3.4/http/client.py in _send_output(self, message_body)
923 message_body = None
--> 924 self.send(msg)
925 if message_body is not None:
/usr/lib/python3.4/http/client.py in send(self, data)
858 if self.auto_open:
--> 859 self.connect()
860 else:
/usr/lib/python3/dist-packages/urllib3/connection.py in connect(self)
153 def connect(self):
--> 154 conn = self._new_conn()
155 self._prepare_conn(conn)
/usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self)
132 conn = connection.create_connection(
--> 133 (self.host, self.port), self.timeout, **extra_kw)
134
/usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
63 err = None
---> 64 for res in socket.getaddrinfo(host, port, 0, socket.SOCK_STREAM):
65 af, socktype, proto, canonname, sa = res
/usr/lib/python3.4/socket.py in getaddrinfo(host, port, family, type, proto, flags)
529 addrlist = []
--> 530 for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
531 af, socktype, proto, canonname, sa = res
ProtocolError: ('Connection aborted.', gaierror(-2, 'Name or service not known'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last)
<ipython-input-57-1b46a5c3b9ff> in <module>()
7 bonow = botit.replace(' ', '-')
8 gifparm = {'q' : botit, 'api_key' : 'dc6zaTOxFJmzC'}
----> 9 reqgif = requests.get('http://api.giphy.com/v1/gifs/search', params = gifparm)
10 gifjs = (reqgif.json())
11 print(gifjs['data'][0]['images']['fixed_width'])#['images'])
/usr/lib/python3/dist-packages/requests/api.py in get(url, **kwargs)
58
59 kwargs.setdefault('allow_redirects', True)
---> 60 return request('get', url, **kwargs)
61
62
/usr/lib/python3/dist-packages/requests/api.py in request(method, url, **kwargs)
47
48 session = sessions.Session()
---> 49 return session.request(method=method, url=url, **kwargs)
50
51
/usr/lib/python3/dist-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
455 }
456 send_kwargs.update(settings)
--> 457 resp = self.send(prep, **send_kwargs)
458
459 return resp
/usr/lib/python3/dist-packages/requests/sessions.py in send(self, request, **kwargs)
567
568 # Send the request
--> 569 r = adapter.send(request, **kwargs)
570
571 # Total elapsed time of the request (approximately)
/usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
405
406 except (ProtocolError, socket.error) as err:
--> 407 raise ConnectionError(err, request=request)
408
409 except MaxRetryError as e:
ConnectionError: ('Connection aborted.', gaierror(-2, 'Name or service not known'))
In [58]:
newdic = {'api-key' : '177948e7f058537298a9a57b29ac0195:11:74111394', 'q' : 'blockchain', 'sort' : 'newest'}
In [59]:
newnews = requests.get('https://api.nytimes.com/svc/search/v2/articlesearch.json', params = newdic)
---------------------------------------------------------------------------
gaierror Traceback (most recent call last)
/usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, **response_kw)
515 timeout=timeout,
--> 516 body=body, headers=headers)
517
/usr/lib/python3/dist-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, **httplib_request_kw)
303 # Trigger any extra validation we need to do.
--> 304 self._validate_conn(conn)
305
/usr/lib/python3/dist-packages/urllib3/connectionpool.py in _validate_conn(self, conn)
723 if not getattr(conn, 'sock', None): # AppEngine might not have `.sock`
--> 724 conn.connect()
725
/usr/lib/python3/dist-packages/urllib3/connection.py in connect(self)
202 # Add certificate verification
--> 203 conn = self._new_conn()
204
/usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self)
132 conn = connection.create_connection(
--> 133 (self.host, self.port), self.timeout, **extra_kw)
134
/usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
63 err = None
---> 64 for res in socket.getaddrinfo(host, port, 0, socket.SOCK_STREAM):
65 af, socktype, proto, canonname, sa = res
/usr/lib/python3.4/socket.py in getaddrinfo(host, port, family, type, proto, flags)
529 addrlist = []
--> 530 for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
531 af, socktype, proto, canonname, sa = res
gaierror: [Errno -2] Name or service not known
During handling of the above exception, another exception occurred:
ProtocolError Traceback (most recent call last)
/usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
361 retries=Retry(self.max_retries, read=False),
--> 362 timeout=timeout
363 )
/usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, **response_kw)
558 retries = retries.increment(method, url, error=e,
--> 559 _pool=self, _stacktrace=stacktrace)
560 retries.sleep()
/usr/lib/python3/dist-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace)
244 if read is False:
--> 245 raise six.reraise(type(error), error, _stacktrace)
246 elif read is not None:
/usr/lib/python3/dist-packages/six.py in reraise(tp, value, tb)
623 if value.__traceback__ is not tb:
--> 624 raise value.with_traceback(tb)
625 raise value
/usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, **response_kw)
515 timeout=timeout,
--> 516 body=body, headers=headers)
517
/usr/lib/python3/dist-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, **httplib_request_kw)
303 # Trigger any extra validation we need to do.
--> 304 self._validate_conn(conn)
305
/usr/lib/python3/dist-packages/urllib3/connectionpool.py in _validate_conn(self, conn)
723 if not getattr(conn, 'sock', None): # AppEngine might not have `.sock`
--> 724 conn.connect()
725
/usr/lib/python3/dist-packages/urllib3/connection.py in connect(self)
202 # Add certificate verification
--> 203 conn = self._new_conn()
204
/usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self)
132 conn = connection.create_connection(
--> 133 (self.host, self.port), self.timeout, **extra_kw)
134
/usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
63 err = None
---> 64 for res in socket.getaddrinfo(host, port, 0, socket.SOCK_STREAM):
65 af, socktype, proto, canonname, sa = res
/usr/lib/python3.4/socket.py in getaddrinfo(host, port, family, type, proto, flags)
529 addrlist = []
--> 530 for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
531 af, socktype, proto, canonname, sa = res
ProtocolError: ('Connection aborted.', gaierror(-2, 'Name or service not known'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last)
<ipython-input-59-f82bdb8f7fed> in <module>()
----> 1 newnews = requests.get('https://api.nytimes.com/svc/search/v2/articlesearch.json', params = newdic)
/usr/lib/python3/dist-packages/requests/api.py in get(url, **kwargs)
58
59 kwargs.setdefault('allow_redirects', True)
---> 60 return request('get', url, **kwargs)
61
62
/usr/lib/python3/dist-packages/requests/api.py in request(method, url, **kwargs)
47
48 session = sessions.Session()
---> 49 return session.request(method=method, url=url, **kwargs)
50
51
/usr/lib/python3/dist-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
455 }
456 send_kwargs.update(settings)
--> 457 resp = self.send(prep, **send_kwargs)
458
459 return resp
/usr/lib/python3/dist-packages/requests/sessions.py in send(self, request, **kwargs)
567
568 # Send the request
--> 569 r = adapter.send(request, **kwargs)
570
571 # Total elapsed time of the request (approximately)
/usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
405
406 except (ProtocolError, socket.error) as err:
--> 407 raise ConnectionError(err, request=request)
408
409 except MaxRetryError as e:
ConnectionError: ('Connection aborted.', gaierror(-2, 'Name or service not known'))
In [26]:
newsjs = (newnews.json())
In [27]:
newdocs = newsjs['response']['docs']
In [31]:
for newd in newdocs:
print(newd)
phead = (newd['headline']['print_headline'])
pnone = phead.replace(' ', '-')
print(newd['snippet'])
newsnip.update({pnone : dict({'printheadlin' : phead, 'snippit' : newd['snippet']})})
{'score': 3.716621, 'document_type': 'article', 'uri': 'nyt://article/f46bbee3-ddf1-5fa3-bad2-0844fb2ad347', 'type_of_material': 'News', 'new_desk': 'None', 'multimedia': [], 'word_count': 250, 'web_url': 'https://www.nytimes.com/reuters/2017/09/06/technology/06reuters-ukraine-blockchain.html', 'snippet': "Ukraine's justice ministry carried out trial auctions using blockchain technology for the first time on Wednesday, part of an effort to improve transparency in government transactions.", 'blog': {}, 'source': 'Reuters', 'byline': {'original': 'By REUTERS'}, 'headline': {'print_headline': 'Ukrainian Ministry Carries Out First Blockchain Transactions', 'main': 'Ukrainian Ministry Carries Out First Blockchain Transactions'}, '_id': '59b03c007c459f246b62214a', 'pub_date': '2017-09-06T18:18:28+0000', 'keywords': []}
Ukraine's justice ministry carried out trial auctions using blockchain technology for the first time on Wednesday, part of an effort to improve transparency in government transactions.
{'score': 3.2532094, 'document_type': 'article', 'uri': 'nyt://article/13658f66-ef4d-507e-9a82-1c533c813856', 'type_of_material': 'News', 'new_desk': 'None', 'multimedia': [], 'word_count': 288, 'web_url': 'https://www.nytimes.com/reuters/2017/09/06/business/06reuters-blockchain-ecb.html', 'snippet': "Distributed ledger technology like blockchain is not mature enough to power the world's biggest payment systems, though it has the potential to improve system resilience, the European Central Bank and the Bank of Japan said on Wednesday.", 'blog': {}, 'source': 'Reuters', 'byline': {'original': 'By REUTERS'}, 'headline': {'print_headline': 'Blockchain Immature for Big Central Banks, ECB and BOJ Say', 'main': 'Blockchain Immature for Big Central Banks, ECB and BOJ Say'}, '_id': '59b006977c459f246b62206f', 'pub_date': '2017-09-06T14:30:32+0000', 'keywords': []}
Distributed ledger technology like blockchain is not mature enough to power the world's biggest payment systems, though it has the potential to improve system resilience, the European Central Bank and the Bank of Japan said on Wednesday.
{'score': 0.6811652, 'document_type': 'article', 'uri': 'nyt://article/496d1ecb-7808-55a7-a8fd-de68e0496fce', 'type_of_material': 'News', 'new_desk': 'None', 'multimedia': [], 'word_count': 390, 'web_url': 'https://www.nytimes.com/reuters/2017/09/05/business/05reuters-sec-enforcement.html', 'snippet': 'Regulators must do more to help mom-and-pop investors better understand the potential risks posed by cyber crime and new technologies used to commit fraud, U.S. Securities and Exchange Commission Chairman Jay Clayton said on Tuesday.', 'blog': {}, 'source': 'Reuters', 'byline': {'original': 'By REUTERS'}, 'headline': {'print_headline': 'SEC Chief Says Cyber Crime Risks Are Substantial, Systemic', 'main': 'SEC Chief Says Cyber Crime Risks Are Substantial, Systemic'}, '_id': '59af58e47c459f246b621ea0', 'pub_date': '2017-09-06T02:09:35+0000', 'keywords': []}
Regulators must do more to help mom-and-pop investors better understand the potential risks posed by cyber crime and new technologies used to commit fraud, U.S. Securities and Exchange Commission Chairman Jay Clayton said on Tuesday.
{'score': 2.4777472, 'document_type': 'article', 'uri': 'nyt://article/b11f50cc-2a60-5f57-bde8-2f96ff7789ea', 'type_of_material': 'News', 'new_desk': 'None', 'multimedia': [], 'word_count': 395, 'web_url': 'https://www.nytimes.com/reuters/2017/09/05/business/05reuters-blockchain-insurance-marine.html', 'snippet': 'Consultancy EY, data security firm Guardtime, Microsoft and ship operator Maersk have joined to build a blockchain-based marine insurance platform that will be the first real-world use of the nascent technology in the shipping industry. ', 'blog': {}, 'source': 'Reuters', 'byline': {'original': 'By REUTERS'}, 'headline': {'print_headline': 'EY Teams Up With Maersk, Microsoft on Blockchain-Based Marine Insurance', 'main': 'EY Teams Up With Maersk, Microsoft on Blockchain-Based Marine Insurance'}, '_id': '59af2d497c459f246b621e55', 'pub_date': '2017-09-05T23:03:31+0000', 'keywords': []}
Consultancy EY, data security firm Guardtime, Microsoft and ship operator Maersk have joined to build a blockchain-based marine insurance platform that will be the first real-world use of the nascent technology in the shipping industry.
{'score': 0.9414933, 'document_type': 'article', 'uri': 'nyt://article/a6d81fb9-0662-547a-a3ee-444995be4008', 'type_of_material': 'News', 'new_desk': 'None', 'multimedia': [], 'word_count': 259, 'web_url': 'https://www.nytimes.com/reuters/2017/09/05/business/05reuters-china-finance-digital-regulation.html', 'snippet': "It is the interest of the long-term development of blockchain technologies for the rapidly growing market for fundraising through the issue of digital currencies to be regulated, an adviser to China's central bank said on Tuesday.", 'blog': {}, 'source': 'Reuters', 'byline': {'original': 'By REUTERS'}, 'headline': {'print_headline': 'Regulation of Digital Coin Offerings Needed for Healthy Market: China Central Bank Adviser', 'main': 'Regulation of Digital Coin Offerings Needed for Healthy Market: China Central Bank Adviser'}, '_id': '59aed56f7c459f246b621d51', 'pub_date': '2017-09-05T16:48:35+0000', 'keywords': []}
It is the interest of the long-term development of blockchain technologies for the rapidly growing market for fundraising through the issue of digital currencies to be regulated, an adviser to China's central bank said on Tuesday.
{'score': 0.96538925, 'document_type': 'article', 'uri': 'nyt://article/73e895cf-4c16-5dd1-9f00-f81b4be0e3b6', 'type_of_material': 'News', 'new_desk': 'None', 'multimedia': [], 'word_count': 259, 'web_url': 'https://www.nytimes.com/reuters/2017/09/05/technology/05reuters-china-finance-digital.html', 'snippet': "It is the interest of the long-term development of blockchain technologies for the rapidly growing market for fundraising through the issue of digital currencies to be regulated, an adviser to China's central bank said on Tuesday.", 'blog': {}, 'source': 'Reuters', 'byline': {'original': 'By REUTERS'}, 'headline': {'print_headline': 'Regulation of Digital Coin Offerings Needed for Healthy Market: China Central Bank Adviser', 'main': 'Regulation of Digital Coin Offerings Needed for Healthy Market: China Central Bank Adviser'}, '_id': '59ae48c47c459f246b621bd1', 'pub_date': '2017-09-05T06:48:32+0000', 'keywords': []}
It is the interest of the long-term development of blockchain technologies for the rapidly growing market for fundraising through the issue of digital currencies to be regulated, an adviser to China's central bank said on Tuesday.
{'score': 3.2131865, 'document_type': 'article', 'uri': 'nyt://article/6b030a69-6596-5030-8bc5-93efee1e926d', 'type_of_material': 'News', 'new_desk': 'None', 'multimedia': [], 'word_count': 246, 'web_url': 'https://www.nytimes.com/reuters/2017/08/31/business/31reuters-blockchain-banks.html', 'snippet': 'Six new banks have joined a UBS-led effort to create a digital cash system that would allow financial markets to make payments and settle transactions quickly via blockchain technology.', 'blog': {}, 'source': 'Reuters', 'byline': {'original': 'By REUTERS'}, 'headline': {'print_headline': 'Six Big Banks Join Blockchain Digital Cash Settlement Project', 'main': 'Six Big Banks Join Blockchain Digital Cash Settlement Project'}, '_id': '59a7c7c37c459f246b620fc0', 'pub_date': '2017-08-31T08:24:27+0000', 'keywords': []}
Six new banks have joined a UBS-led effort to create a digital cash system that would allow financial markets to make payments and settle transactions quickly via blockchain technology.
{'score': 0.95841837, 'document_type': 'article', 'uri': 'nyt://article/20f049a2-ad3b-5bac-819e-fe75f2a9701a', 'type_of_material': 'News', 'new_desk': 'None', 'multimedia': [], 'word_count': 392, 'web_url': 'https://www.nytimes.com/reuters/2017/08/30/business/30reuters-kik-blockchain-offering.html', 'snippet': 'Kik Interactive, the Ontario, Canada-based creator of the global chat platform Kik, valued at $1 billion, said on Tuesday it will launch in two weeks the sale of its own crypto currency which is expected to raise $125 million. ', 'blog': {}, 'source': 'Reuters', 'byline': {'original': 'By REUTERS'}, 'headline': {'print_headline': 'Canada-Based Chat Platform Kik to Launch $125 Million Token Sale', 'main': 'Canada-Based Chat Platform Kik to Launch $125 Million Token Sale'}, '_id': '59a73eb37c459f246b620ec4', 'pub_date': '2017-08-30T22:39:35+0000', 'keywords': []}
Kik Interactive, the Ontario, Canada-based creator of the global chat platform Kik, valued at $1 billion, said on Tuesday it will launch in two weeks the sale of its own crypto currency which is expected to raise $125 million.
{'score': 3.3641672, 'document_type': 'article', 'uri': 'nyt://article/27ab544e-9240-5f08-a4ce-a8fa8951fdb7', 'type_of_material': 'News', 'new_desk': 'None', 'multimedia': [], 'word_count': 358, 'web_url': 'https://www.nytimes.com/reuters/2017/08/30/technology/30reuters-autos-blockchain.html', 'snippet': 'The technology underpinning the cryptocurrency bitcoin is migrating to the auto industry and vehicle sharing.', 'blog': {}, 'source': 'Reuters', 'byline': {'original': 'By REUTERS'}, 'headline': {'print_headline': 'Blockchain Technology Moves Into Car Sharing, Mobility Services', 'main': 'Blockchain Technology Moves Into Car Sharing, Mobility Services'}, '_id': '59a6beb77c459f246b620d2e', 'pub_date': '2017-08-30T13:33:28+0000', 'keywords': []}
The technology underpinning the cryptocurrency bitcoin is migrating to the auto industry and vehicle sharing.
{'score': 0.95841837, 'document_type': 'article', 'uri': 'nyt://article/50c2e233-04a6-5933-b014-7aad3b43ae7f', 'type_of_material': 'News', 'new_desk': 'None', 'multimedia': [], 'word_count': 392, 'web_url': 'https://www.nytimes.com/reuters/2017/08/29/business/29reuters-kik-blockchain-offering.html', 'snippet': 'Kik Interactive, the Ontario, Canada-based creator of the global chat platform Kik, valued at $1 billion, said on Tuesday it will launch in two weeks the sale of its own crypto currency which is expected to raise $125 million. ', 'blog': {}, 'source': 'Reuters', 'byline': {'original': 'By REUTERS'}, 'headline': {'print_headline': 'Canada-Based Chat Platform Kik to Launch $125 Million Token Sale', 'main': 'Canada-Based Chat Platform Kik to Launch $125 Million Token Sale'}, '_id': '59a5d3de7c459f246b620b45', 'pub_date': '2017-08-29T20:51:30+0000', 'keywords': []}
Kik Interactive, the Ontario, Canada-based creator of the global chat platform Kik, valued at $1 billion, said on Tuesday it will launch in two weeks the sale of its own crypto currency which is expected to raise $125 million.
In [39]:
for news in newsnip.keys():
print(news)
Canada-Bas
Blockchain-Technology-Moves-Into-Car-Sharing,-Mobility-Services
Six-Big-Banks-Join-Blockchain-Digital-Cash-Settlement-Project
Blockchain
Regulation
Regulation-of-Digital-Coin-Offerings-Needed-for-Healthy-Market:-China-Central-Bank-Adviser
SEC-Chief-
FULL PACKAGE
THE GUERNSEY LITERARY AND POTATO PEEL PIE SOCIETY
EY-Teams-Up-With-Maersk,-Microsoft-on-Blockchain-Based-Marine-Insurance
Ukrainian-
Ukrainian-Ministry-Carries-Out-First-Blockchain-Transactions
EY-Teams-U
Canada-Based-Chat-Platform-Kik-to-Launch-$125-Million-Token-Sale
Six-Big-Ba
SEC-Chief-Says-Cyber-Crime-Risks-Are-Substantial,-Systemic
Blockchain-Immature-for-Big-Central-Banks,-ECB-and-BOJ-Say
In [ ]:
In [ ]:
Content source: wcmckee/wcmckee.com
Similar notebooks: