Coding Challenge #48: White House Social Media Data Visualization




[ad_1]

In this Coding Challenge, I discuss how to use the newly released White House social media data to make simple data visualization example with p5.js.

💻Challenge Webpage: https://thecodingtrain.com/CodingChallenges/048-tweetsbymonth.html
🎥Photo Mosaic of President Obama: https://youtu.be/nnlAH1zDBDE

🚂Website: https://thecodingtrain.com/
💡Github: https://github.com/CodingTrain
💖Membership: https://youtube.com/thecodingtrain/join
🛒Store: https://www.designbyhumans.com/shop/codingtrain/
📚Books: https://www.amazon.com/shop/thecodingtrain
🖋️Twitter: https://twitter.com/thecodingtrain

Links discussed in this video:
🔗White House Social Media Data: https://www.whitehouse.gov/blog/2017/01/05/new-lenses-first-social-media-presidency
🔗Data and source code on ITP “Obamathon” github repo: https://github.com/ITPNYU/Obamathon/tree/master/examples/P5/TweetsByMonth
🔗TF-IDF: https://youtu.be/RPMYV-eb6lI

🎥Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
🎥Intro to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA

🔗 p5.js: https://p5js.org
🔗 Processing: https://processing.org

📄 Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct
🌐Help us caption and translate: http://www.youtube.com/timedtext_cs_panel?c=UCvjgXvBlbQiydffZU7m1_aw&tab=2
🚩Suggest Topics: https://github.com/CodingTrain/Rainbow-Topics
👾Share your contribution: https://thecodingtrain.com/Guides/community-contribution-guide.html

Source


[ad_2]

Comment List

  • The Coding Train
    December 17, 2020

    I think changing the splitter regex to something like `/W*s+W*` removes a lot of noise already (skips URIs and such). Further cleanup should be done using `array.filter()`. Finally inversing the if statements enables using the `continue` statement, thus avoiding a lot of nesting.

  • The Coding Train
    December 17, 2020

    your hand gesture is enough to understand ! No need to even speak!!!

  • The Coding Train
    December 17, 2020

    please use machine learning with such data sets in the future, amazing work!

  • The Coding Train
    December 17, 2020

    Hi Daniel, Thanks a lot for the good job! Please prepare a coding challenge on sentiment analysis using Twitter APIs

  • The Coding Train
    December 17, 2020

    Hearing JSON being said so many times in a row takes me back to my school days. I did a course on web development, and being a group of 20-30-year-old beer-loving boys living at the height of social media, we did what anyone in that situation would do: We humanized JSON.

    We convinced the entire school that we had a 24th class member named Json Query. He had a Facebook account, was let into the Facebook group for the school and the class and he even turned in some class work. At the peak of the joke, he was even assigned by one of the newer lecturers to a group work assignment.

    Let me remind you, his name was Json Query and the course was for Web Development in a school specializing in coding.

    Despite Facebook's insistence on proving you're a "real boy", the account is still there today.

  • The Coding Train
    December 17, 2020

    If you split by any letter or number then surely if you had a string 'I wasn't there' you would get 'I' 'wasn' 't' 'there'

  • The Coding Train
    December 17, 2020

    clap clap clap 🙂 Thanks.

  • The Coding Train
    December 17, 2020

    coding challange: replicate Google 😀

  • The Coding Train
    December 17, 2020

    9:18 and onward at half speed

  • The Coding Train
    December 17, 2020

    but how can i extract json file out of facebook or tweeter?

  • The Coding Train
    December 17, 2020

    21:50 correction: a drunk person in a super echoy room

  • The Coding Train
    December 17, 2020

    27:50 : Object.Kenyans, most definitely…

  • The Coding Train
    December 17, 2020

    Why are there so many "first"-s in the final histogram?

  • The Coding Train
    December 17, 2020

    which compiler are you using

  • The Coding Train
    December 17, 2020

    I just noticed, in the end credit, your socks match with your tie.
    I'm not disappointed.

  • The Coding Train
    December 17, 2020

    This channel is awesome! I enjoying watching your vids and really learn a lot out of them! Keep up the amazing work Dan!

  • The Coding Train
    December 17, 2020

    dear Daniel , can you make a organization tree ???

  • The Coding Train
    December 17, 2020

    I tried this on my computer but it doesn't load the JSON file, anyway iy doesn't start the setup() function… I feel lonely and sad please help me :'(

  • The Coding Train
    December 17, 2020

    We want see Coding Challange: A* algorithm

  • The Coding Train
    December 17, 2020

    15:48 lol, so confused what to say!?

  • The Coding Train
    December 17, 2020

    Tried to watch at half speed. You really sound drunk 😀

  • The Coding Train
    December 17, 2020

    It took me right up to the end bell to figure out what flotus and potus stood for… :facepalm:

  • The Coding Train
    December 17, 2020

    at 17:31 you said May to November.The array goes from 4/2015 to 10/2016, does the data extend past the beginning and end of those months?

  • The Coding Train
    December 17, 2020

    Funny you're worried that slow mo will make you look drunk? Haha Mr. Shiffman…I work in law enforcement and have no idea what you are talking about but I can't stop watching because you are a pretty cool guy!! And I am hooked on coding because of you! Great job!

  • The Coding Train
    December 17, 2020

    Do you participate in the ludum dare game dev competition? If not, I would love to see you participate in the next one in April! ldjam.com – new site, ludumdare.com – old site

  • The Coding Train
    December 17, 2020

    Your right you do sound drunk at half speed! Thanks for this vid, watched during the livestream and I'm watching it again now. This is helping me to understand JSON data so much better (y)

  • The Coding Train
    December 17, 2020

    This would have been an ideal video to use RiTa.js.

  • The Coding Train
    December 17, 2020

    Daniel thanks for this video. Even though I am not going to make this example, i can use the things that u explained and put it in my space invaders code

  • The Coding Train
    December 17, 2020

    Awesome video! I know using the simple python server is.. well.. simple 😉 but I'm just going to leave this atom package here in case you want to start one that serves files and auto-reloads your browser on changes within atom! Just started using it, and it's super nice to have! https://atom.io/packages/atom-live-server

  • The Coding Train
    December 17, 2020

    It looks like d3.js has some features for data visualisation that are missing in p5.js. Will we be having those features in p5.js also in the future? If you plan to include those features in p5.js, I would also like to contribute to the source code. I am very much interested in contributing to the core codebase.

  • The Coding Train
    December 17, 2020

    So I started watching your videos at a half speed and to by honest, I can't remember when I laughed more!

  • The Coding Train
    December 17, 2020

    who else was here on the stream?

  • The Coding Train
    December 17, 2020

    YAYAYAYYAYAYAY YOU DID A DATA VISUALIZATION VIDEO OMG

  • The Coding Train
    December 17, 2020

    Can U make a Challenge if green t-shirt or blue? (the same as chromakey)

    This will be funny =) Brazil hugs

  • The Coding Train
    December 17, 2020

    Cant wait to one day being as good as you! I have a huge passion for computer science AND programming :))

  • The Coding Train
    December 17, 2020

    Coding challenge: replicate the mobile game Stack.

  • The Coding Train
    December 17, 2020

    Love U <3 (I'm not gay x))

  • The Coding Train
    December 17, 2020

    heyhey

  • The Coding Train
    December 17, 2020

    u the best daniel 🙂

Write a comment