PYTHON BASTARDS STILL CAN'T ANSWER THIS QUESTION:

2014-03-07 Thread thrinaxodon666
== 
>HOLY F*CKING GOD DAMNED NEWS! 
== 
> 
WELCOME TO YOUR NUMBER ONE SOURCE FOR PRESTIGIOUS BULLLSHIT! THE KIND YOU CAN 
ONLY GET FROM THRINAXODON CRAZY CHEESY! 
> 
NOW FOR YOUR FAVORITE TIME SLOT: 
> 
== 
> 
THRINAXODON FOUND 3  HUMAN FOSSILS FROM DEVONIAN STRATA IN GREENLAND. 
> 
ONE OF THEM WAS A NICE KNEECAP. 
> 
THE MOST BEAUTIFUL KNEECAP EVER DISCOVERED. 
> 
I CALLED OUT CARTER N. 
> 
CARTER CAME RUSHING OVER. WE TOOK THE KNEECAP FROM THE INUIT SAVAGES AND FLEW 
TO THE SMITHSONIAN. 
> 
THEY CALLED US KOOKS AND SLAMMED THE DOOR. 
> 
== 
EVIDENCE THAT HUMANS LIVED IN THE DEVONIAN: 

https://groups.google.com/group/sci.bio.paleontology/browse_thread/thread/6f501c469c7af24f#
 
  
https://groups.google.com/group/sci.bio.paleontology/browse_thread/thread/3aad75c16afb0b82#
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: extract from json

2014-03-07 Thread thrinaxodon666
On Friday, March 7, 2014 3:27:27 PM UTC-5, tedd...@gmail.com wrote:
> I can't find any example on how to do this.
> 
> I have a json file like so:
> 
> {"bostock":[{"url":"http://bl.ocks.org/mbostock/9360565","title":"titleplaceholder","date":"dateplaceholder"},
> 
> {"url":"http://bl.ocks.org/mbostock/9265674","title":"titleplaceholder","date":"dateplaceholder"},
> 
> {"url":"http://bl.ocks.org/mbostock/9265467","title":"titleplaceholder","date":"dateplaceholder"},
> 
> {"url":"http://bl.ocks.org/mbostock/9234731","title":"titleplaceholder","date":"dateplaceholder"},
> 
> {"url":"http://bl.ocks.org/mbostock/9232962","title":"titleplaceholder","date":"dateplaceholder"},
> 
> 
> 
> this goes on for more than 700 entries. only thing unique is the number at 
> the end of the url. I am going to load the url in python, get the date and 
> title and write it in the json itself. 
> 
> Right now I am stuck on just reading the url in the json. Here is my code:
> 
> 
> 
> import json
> 
> 
> 
> with open("bostock.json") as json_file:
> 
> json_data = json.load(json_file)
> 
> print(json_data)
> 
> 
> 
> I have tried json_data[0], json_data.url and a few others I forget right now 
> and it does not seem to work.  
> 
> 
> 
> I have already figured out how to get the title and date.
> 
> First things first: How can i just get the url for each line of the above 
> json file?

I think it's better if you f*ck off.
-- 
https://mail.python.org/mailman/listinfo/python-list