rvest
First few submissions look great!
For the rest of you, extension until tomorrow midnight
Will assign PF on Saturday
Pay attention to the rubric
Assignment Modification
If you don’t want to write propoganda, just write Task 4 as straight answers
Brightspace - Wednesdays at 11:45
Next pre-assignment is 2025-04-30 at 11:45pm ET
I am behind on reading PA comments:
I owe you:
Semester end is coming quickly!
That’s it!
Thank you!
Several of you have reported issues with git
complaining about large files
git ls-tree -r -t -l --full-name HEAD | sort -n -k 4 | tail -n 10
git filter-branch --index-filter 'git rm -rf --cached --ignore-unmatch data/**' HEAD
⚠️This is dangerous! I can help with it after class.⚠️
What is the difference between HTML and CSS?
HTML is substance; CSS is style
Distinction can be a bit blurry & CSS can live “inside” HTML
a
in SelectorGadgetWhy does [SelectorGadget] display “a” in the selector when selecting a web link?
a
is for anchor.
Confusingly, anchors are both links and destinations.
Anchors can reference:
http://URL
)http://URL#place
)#place
)Quarto supports cross-linking with anchors
Why does SelectorGadget go “unique” when I click multiple elements of interest?
Can’t find a common structure:
How to avoid unwanted elements such as headers or sidebars, focusing only on the main content I need?
Nest your selectors!
thing1 thing2
will select only thing2
s inside a thing1
Try main h2
Is [HTML] similar to Markdown ?
Markdown is an easier way to write (a subset of) HTML
Name is a bad joke: Markup (M
in HTML
) vs Markdown
HTML can (theoretically) do more, but painful to write by hand
How can we target data with CSS Selectors in messy HTML?
Pain and suffering - depends how messy.
Worst case: a little bit of HTML selection + text processing (next week)
rvest
main h2
table
or tbody
.geo
rvest
rvest
Recall Lab 1. Goal: extend map to all CUNYs
Steps:
geo
class, use this:leaflet
to show all locationsRoom | Team | Room | Team | |
---|---|---|---|---|
1 | Team Mystic | 5 | Money Team + CWo. | |
2 | Subway Metrics | 6 | Lit Group | |
3 | Noise Busters | 7 | Cinephiles + VG | |
4 | AI Impact Col | 8 |
Goal: create a cocktail data frame from Hadley’s Recipies
Today:
Next time:
Seeking suggestions for next semester
Next Week (After Spring Break):
Longer Term:
End of the Semester is Upcoming