This commit is contained in:
tree 2022-01-06 05:18:28 +01:00
rodič b135462725
revize 6de1ba3a50
25 změnil soubory, kde provedl 42 přidání a 15 odebrání

Zobrazit soubor

@ -24,4 +24,4 @@ stats:
deno run --unstable --allow-read utils/stats.js
twitter:
deno run --unstable --allow-read --allow-env --allow-net utils/twitter.js
deno run --unstable --allow-read --allow-write --allow-env --allow-net utils/twitter.js

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 55 KiB

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 42 KiB

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 18 KiB

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 24 KiB

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 24 KiB

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 24 KiB

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 24 KiB

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 32 KiB

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 18 KiB

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 24 KiB

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 18 KiB

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 12 KiB

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 18 KiB

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 32 KiB

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 42 KiB

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 42 KiB

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 24 KiB

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 24 KiB

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 42 KiB

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 32 KiB

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 144 KiB

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 32 KiB

Zobrazit soubor

@ -1,34 +1,41 @@
- name: Adam Kracík
- id: adam-kracik
name: Adam Kracík
tracks: [ zaklady, eth, defi, alty ]
- name: Adam Studeník
- id: adam-studenik
name: Adam Studeník
twitter: adamstudenik
tracks: [ eth, defi ]
- name: Anett Rohlikova
- id: anett-rohlikova
name: Anett Rohlikova
twitter: anettrolikova
orgs: |
[Ethereum Magicians](https://ethereum-magicians.org/)
tracks: [ eth, nft ]
- name: damsky
- id: damsky
name: damsky
twitter: CryptoDamSky
tracks: [ eth, defi, dao, spolecnost ]
- name: DavidBankless
- id: david-bankless
name: DavidBankless
twitter: davidbankless
orgs: |
[Flipper.Zone](https://twitter.com/flipperzonenft), [BanklessDAO](https://www.bankless.community)
tracks: [ zaklady, dao, nft ]
- name: Honza Dvořák
- id: honza-dvorak
name: Honza Dvořák
nickname: Gorrdy
twitter: _Honza_Dvorak
orgs: |
[btcplatby.cz](https://btcplatby.cz)
tracks: [ zaklady, btc ]
- name: Jiří Čepelka
- id: jiri-cepelka
name: Jiří Čepelka
twitter: JiriCepelka
tracks: [ zaklady, eth, defi ]
@ -43,7 +50,8 @@
lead: true
tracks: [ btc, dao, spolecnost ]
- name: Vladimír Pinker
- id: vladimir-pinker
name: Vladimír Pinker
nickname: KryptoVláďa
twitter: KryptoVlada
orgs: |
@ -59,11 +67,13 @@
lead: true
tracks: [ zaklady, btc, eth, defi ]
- name: m0xt
- id: m0xt
name: m0xt
twitter: m0xt_
tracks: [ eth, defi, dao ]
- name: Petr Klein
- id: petr-klein
name: Petr Klein
twitter: kleinpetr_com
tracks: [ zaklady, eth, defi ]
@ -76,13 +86,15 @@
lead: true
tracks: [ defi, nft, spolecnost ]
- name: Petr Menšík
- id: petr-mensik
name: Petr Menšík
twitter: petr_mensik
orgs: |
[Polkadotters](https://twitter.com/polkadotterss)
tracks: [ alt, defi ]
- name: Pavel Přecechtěl
- id: pavel-precechtel
name: Pavel Přecechtěl
nickname: HomΞr Shillson
twitter: homershillson
orgs: |
@ -101,13 +113,15 @@
lead: true
tracks: [ spolecnost ]
- name: Tomáš Zdražil
- id: tomas-zdrazil
name: Tomáš Zdražil
twitter: investree_cz
orgs: |
[Investree](https://investree.cz)
tracks: [ eth, defi ]
- name: Tomáš
- id: tomas-kryptovlada
name: Tomáš
orgs: |
Člen [KryptoVláďa](https://www.kryptovlada.win) komunity
tracks: [ zaklady, eth, defi ]

Zobrazit soubor

@ -2,12 +2,16 @@ import { config } from "https://deno.land/x/dotenv/mod.ts"
import SimpleTwitter from "https://deno.land/x/simple_twitter_deno@0.05/simple_twitter_deno.ts"
import { Table } from "https://deno.land/x/cliffy@v0.20.1/table/mod.ts"
import { UTXOEngine } from './engine.js'
import { exists } from "https://deno.land/std/fs/mod.ts"
import { fromStreamReader } from "https://deno.land/std@0.60.0/io/streams.ts"
const utxo = new UTXOEngine({ silent: true })
await utxo.init()
config({ path: ".env", export: true })
const twitterImagesPath = './spec/22/photos/speakers/'
const simple_twitter = new SimpleTwitter({
consumer_key: Deno.env.get("CONSUMER_KEY"),
consumer_secret: Deno.env.get("CONSUMER_SECRET"),
@ -30,6 +34,15 @@ for (const sp of entry.specs.speakers) {
if (!tw) {
continue
}
const url = tw.profile_image_url_https.replace('_normal', '')
console.log(url)
const res = await fetch(url)
const file = await Deno.open(twitterImagesPath + sp.id + '-twitter.jpg', { create: true, write: true })
const reader = fromStreamReader(res.body.getReader())
await Deno.copy(reader, file)
file.close()
arr.push([ tw.screen_name, tw.followers_count ])
total += tw.followers_count
}