This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const cheerio = require('cheerio') | |
const axios = require('axios').default | |
async function fetchFollowerCounts(usernames) { | |
const followerData = usernames.map((username) => { | |
return axios.get(`https://mobile.twitter.com/${username}`).then((res) => { | |
const $ = cheerio.load(res.data) | |
const searchContext = `a[href='/${username}/followers']` | |
const followerCountString = $(searchContext) | |
.text() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for family in UIFont.familyNames() { | |
print("family: \(family)") | |
for name in UIFont.fontNamesForFamilyName(family) { | |
print("name: \(name)") | |
} | |
print("") | |
} |