<jupyter_start><jupyter_text>Using Forbes API to snag a list of billionaires in US  Traitors Against Humanity> Identification and tracking of the billionaires ruining the world - toc: true- branch: master- badges: true- comments: true- author: alaughingman- image: images/alaughingman.jpg- categories: [fastpages, jupyter, eattherich, kommunism]  Fuck the Billionaires! Their Greed and exploiitation of the working class has led to countless deaths and enslavement under a system that is failing us. Especially now, under COVID and BLACKLIVESMATTER we are seeing how little they care and in fact are hurting us. They've become disconnected and apathetic to the world around them. And they've become emboldened enough to believe themselves about reproach. In this age where they can live and travel anywhere in the world, it's time to remind them that there are consequences to their actions. That there are so few of them, and so many of us. The goal now is to compile data. Where they live, how they can be contacted. What their private assets are and what can be taken away to make them feel reality the way we do. Thank you for your help.<jupyter_code>#collapse-hide
import pandas as pd
import altair as alt
from fastai.basics import *
!pip install requests
import requests
import json
traitors = requests.get('https://forbes400.herokuapp.com/api/forbes400/getAllBillionaires')
print(traitors.status_code)
df = pd.read_json (r'/content/traitors.json')
df.to_csv (r'/content/traitors.csv', index = None)
#collapse-hide
#Saving requested json in google collab
with open('traitors.json', 'wb') as outf:
    outf.write(traitors.content)
df = pd.read_json (r'traitors.json')
print(df)
df[:5]<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.06922629435718441, 'fraction_numerical': 0.004072134962187318, 'mean_word_length': 5.07773851590106, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '600788', 'license': 'Apache-2.0', 'n_tokens_mistral': 498, 'n_tokens_neox': 480, 'n_words': 227, 'path': '_notebooks/2020-06-01-TraitorsAgainstHumanity.ipynb', 'repo_name': 'ialreadysaidyes/alaughingman', 'size': '1719'}