Skip to content

2020 Data #4

@jroakes

Description

@jroakes

Here is 2020 data pulled from: https://fortune.com/fortune500/2020/search/

Data: https://pastebin.com/SPqSYk9n

Pulled all 1k using the code below by clicking through each 100 results and running the code below. Collected today.

// If text is not set initialize and add heading row.
if (typeof(text) == 'undefined' || !text.length){

    var text = ""
    // Add Headings
    var rowText = ""; 
    $$('.searchResults__columnTitle--1Brf4').forEach((e)=>{ rowText += e.textContent.replace(',', ' ') + ","; });
    text += rowText.slice(0, -1) + "\n";
};


// Loop through table adding rows.
$$('.rt-tr-group').forEach((e)=>{ var rowText = ""; 
                                  e.querySelectorAll('span').forEach((i) => {
                                      rowText += i.textContent.replace(',', '') + ","; 
                                      }); 

                                      text += rowText.slice(0, -1) + "\n"; 
                                      }
                           );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions