#gotta remember to start tagging attributes :P
Explore tagged Tumblr posts
horse-breed-a-day · 7 months ago
Text
Tumblr media
Horse breed of the day: Swedish Ardennes
Height: 15-16 hh
Common coat colors: Black, chestnut and blood bay
Place of origin: Sweden
1K notes · View notes
who-talks-first · 5 years ago
Text
Okay I'm having trouble finding everyone's posts from Friday. But I just watched chapter 9 and I have some thoughts.
Opening the episode with Din saying he doesn't gamble then ending it with him making a massive gamble was interesting. Although I genuinely don't think he ever does anything he doesn't believe he can do.
The fights in this episode are amazing. Just stunning:
The fight at the arena. The Child ducking when he sees the Birds activate. "I'm not." Really. Din, stop being so goddamn fucking hot, I'm trying to watch the damn show! The whole dangling the gangster part. "You won't die by my hand." (one of the best parts of the character Din Djarin is he is both viciously ruthless and honorable to a fault. I love it!)
The fighting at the end. Both men flying in sync to kill the beast. The Raiders and townsfolk grudgingly working together. But it would have worked better just leaving the loaded bantha in the valley, luring the best out, and detonating it. Fewer civilian deaths but what do I know, I wasn't raised in the fighting corps. And god at the end when Din soars out of the monster's mouth! I that was how the episode would end as soon as I saw the explosives. But still so fucking cool! Is there a name for that trope? I call it the Hercules.
Can we talk for a second about how Din looks in this ep? The strides, the poses and posture. He exudes so much bde that it physically hurts me. Clearly a lot of that is Mandalorian in nature, if those images of Boba Fett from the comics tell us anything (Fett sitting spread in his ship and Din doing it on the wagon at Sorgan have p much the same energy). Just looking fine as hell through the whole thing, even covered in deadly dragon stomach acid.
And can we talk about how much he says this episode? He explains the Tuskens' behavior, translates, plans, barters, smooches doggies, etc. He talks a lot. And I think that's interesting. Din has this reputation as being awkward in social situations and quiet. And like, it's one thing feeling shy around the beautiful widow who's hitting on you. But he says what he means clearly and more or less concisely, including some one-liners and sarcasm. I think he could be described as "laconic" (my character does describe him as such in the thing I'm writing), which means they use as few words as possible to get their point across. Din has no hesitation in speaking, he just prefers to only speak when he has something to say, if that makes sense.
So happy to see Aunt Peli! And Din being like "eh let them work" That's what we call growth.
The casting. I nearly lost my shit when Timothy Olyphant was under the helmet, looking like a whole ass meal. Like that is the most flattering haircut and beard combo I've ever seen on him. Don't @me but he could get it. And poor typecast Leguizamo. Still great tho. He was fun little asshole.
I love when this show doubles down on the western themes:
Vanth's name, accent, role, and general appearance all line up with a small town wild west sheriff. Just showing up and saving the town, so they're like, you're the Lone Ranger now! Olyphant has played western roles before, including voicing The Spirit of the West (an avatar of the legends and ideals of the wild west modeled on Clint Eastwood's western characters) in the animated film Rango (a lot of the Mandalorian's aesthetic comes from Eastwood's movies).
The Mandalorian theme but softly strummed on a Spanish (nylon string) guitar is very evocative of a border town.
The tuskens represent an Indian tribe. The abandoned mining town. The mysterious stranger who comes to town and saves it. Vanth and Din nearly have a quickdraw shootout! The child is hiding in a spittoon for chrissakes!
It really echoes the 7 Samurai theme of chapter 4. I know it's an overlapping, repeating theme in western film. I guess I was surprised to see it again so quickly.
I don't know how I feel about Din speaking Tusken. Signing was one thing. But I just giggled uncomfortably the whole time feeling it was kinda silly (and I had assumed the reason he signed was because humans couldn't speak Tusken). Was that our big hero, heartthrob, and favorite actor Mr. Pascal sitting in the studio making those noises? Rrrhehh rheh rrhehh! I dunno I'm just. Reeling.
Isn't interesting that Din would annihilate the entire populace of Jawas without batting an eye, but he would do almost anything to protect the Sand People? I know there's something to that, about marginalized/eugenicized groups versus like colonialism and whatever vulture like construct you would attribute to the Jawas. But I'm not smart enough to articulate it.
Okay, so the obvious: Boba Fett. Really shocked to see his armor on someone else. I'd already seen the casting of Morrison, so I wasn't like, "is he dead?" and I knew right away this hick didn't take it off him. I wonder if the Jawas stunned him and removed it. Either way, there's going to be hell to pay. I can't wait to see Din and Boba interact; I wonder how they'll respond to each other. And even though Fett should be in his early 40s (I think) he really looks like hell. I mean, I know he's seen some shit. But I wonder what's been up with him in the last decade or so.
Some stuff I thought I noticed, but I need y'all to help me confirm:
Was that Anakin's podracer engine?
Was that C-3PO graffitied on the wall in the dirty city?
Were we supposed to recognize R5?
There's a couple others but I forgot em. I gotta watch it again.
Some questions:
What was the spherical thing the Tusken Raiders recovered from the beast's remains? The scene mirrored the Jawas and the mudhorn's TSUGA! Tsuga tsuga! Tsuuuga! But that didn't look like an egg. If I didn't know better I would swear it was a pearl. (which almost makes sense if you take into account that this guy eats dirt for a living and could have an organ or extra stomach in there like those gross hard balls they used to pull out of ox bellies) Or was it mentioned earlier and I didn't catch it? There was a lot going on.
What are the sand doggies? They're so cute! And that totally establishes our mans as a dog person. Writers, start your fics!
I'm a bit confused about the town's history. How have the people survived for so long with the beast there? Was it the Krayt dragon that wiped it literally off the map? How does the slaving mining guild fit in there?
It really looks in chapter 4 that those krill are native (it's not explicitly stated tho). If no one even knows where Sorgan is and it doesn't have a big export economy, how do these people in the middle of buttfuck nowhere have spotchka?
On that note, how did that city gangster hear about Fett/Vanth? I mean, I dig that he's a collector of beskar'gam, but like, that's still way out there.
The jingling spurs sound in chapter 5 is deliberately obvious when that mysterious figure comes upon Fennec Shand. Can we assume that's Cobb Vanth there? Because clearly, Fett has been without his armor for a while. If it was Vanth, what did he do with her? I don't believe for a second that she's dead. He's not a bounty hunter and he wouldn't have any idea she was valuable since the Guild had abandoned Tatooine. Barter for help/transportation /goods/labor /etc? Also, if it was Vanth, did he witness the whole thing? If so, he knows who Din is. Maybe knows Toro. I dunno. Lots of thoughts. Did he just stumble upon her while traveling back to his village? I forgot the name already lol Mos Pelegrino?
Okay it's nearly 4 am. I genuinely can't remember if I had anything else to say. Please continue to tag your spoilers cuz I will again not get to view the episode until after y'all do next week. But until then, please come yell at me about our favorite show and space boyfriend. I like crazy theories too.
Love y'all. 😘😘😘
74 notes · View notes
kimmysfandomblog · 7 years ago
Note
17, 13 & 18?
*7, 13, and 18
No problems, Tiff! Thank you very much for the ask :D (17 would be way too easy to answer lol)
From here:  https://kimmysfandomblog.tumblr.com/post/174420433457/danganronpa-ask-meme
7. Favorite Class Trial
You know, this is a tough one. If it includes the final trial, then I gotta say the DR2 CH6 Class trial was so satisfying. I really loved the conclusion of the game and every plot twist (sans maybe AI Junko claiming mastermind over Kamukura). Most especially, I love how Hajime develops through it! I’d already been hurting for Hajime after the end of CH5 when he lost both Ko and Nanami, and then he came across such painful information, that he wasn’t even real, that if he wakes up, it might not even be him, that he may not remember anything about this simulation, or even remember the friends he met, and of course, that he and the others all destroyed the world and were international criminals that deserved to be put down. Junko even teases them with the lives of all the friends they lost because of this class trial! The ending of DR2, to me, was the best ending of every entry of the series. It had just enough answered and just enough mystery.
If you want me to talk about murder cases, then I’d say Komaeda’s is probably the most fascinating! He had the most gruesome corpse, even compared to V3 which was supposed to be more violent. His plan caught me off guard a few times, and I think it was rather genius. To this day, I still want to know if he really intended for the now-survivors to die or not. It was also the death of two of the people I consider my favorites of the games, and just overall, this class trial was emotional.
13. What’s your opinion on the DR3 anime?
Lol, I’d rather answer “What anime?”
I regret it so much :P
I think that it started off with promise. I would have even been fine with Human Nanami if she wasn’t just used for torture pron, plot convenience, and forced feels. I remember at that point just feeling utterly frustrated at the anime for doing this to her character.
I was actually pretty cool with the first six episodes of each arc (even if some/all were rushed). Starting with Episode 7 and the beginning of the Funimation delays, things just kept going down south, though. There was just things resolved in such boring or unsatisfying ways, like mass brainwashing, Komaeda gets kicked out of school starting from Episode 4 and comes back with random bits of knowledge that can only be attributed by plot convenience (and random fanservice moment that I go ??? at), brainwashing is the reason for everything in Future Arc as well, Juzo just... lets Junko go despite evidence, overwhelming evidence (she caused 15 people to die, plus some more undocumented deaths that could be traced back to her, and the obvious brainwashed RC students she pits him against till he was exhausted), and then there was the part where Yukizome also became Despair, slowly poisoned Kyosuke with Despair coated in Hope, may have caused the head of Future Foundation to turn to Despair (that part still confuses me), and dies for real at the beginning of the episode because of a brainwashing suicide video that she gave to Tengan. Oh yeah, and Tengan is a forgettable mastermind since his motivations are like.... unexplainable. Ryota as like “the final boss” of the Hope Arc is also like... why??? Even Hope Arc, I only liked the fact my favorite cast was okay. But the actual content... kinda shallow for the ending of an otherwise fascinating series. DR3 was such an utter disappointment. I’m skipping through a lot of things, mostly to do with Future Arc, which was only somewhat better than Despair Arc. I think the DR3M cast would have actually been great if we could??? get to know them better??? I just feel like, overall, they should have focused on one story or the other, and thought better about using brainwashing as their answer.
But I think you get the picture: I share in the opinion that Anime was a mistake.
18. Favorite rare ship?
Gosh I have so many.... my favorite 3 are Kamu///nami (It’s honestly just under Koma///hina for me), Hin//aegi, and Koma///nami! I think that most people on this site would find the first and last one problematic, but what can I say? I have alternate universes where Nanami respects Kamukura as his own person separate from Hinata. I like Twin AUs where Kamukura and Hinata are different people, and also I love to fantasize about AI Kamukura and AI Nanami sharing the NWP together and using it to help Future Foundation or Hinata and Class 77. And for Koma//Nami, I think of a Nanami who is good and kind to Komaeda. I like to think about this AU I made for Koma///Nami Week where Nagito was treated really well by Nanami, even her getting concerned about him and trying to persuade him to join in the class, and then getting the class to get used to and accept him (which has not as much success as she’d have like). I actually made a timeline, but just hadn’t the courage to post it, lol.
And then of course, there’s my love for Hin//aegi! Something about the ship just makes me smile! Like, I feel really warm and happy thinking about it? It’s like a comfort ship to me, since both Naegi and Hinata are similar, but supportive guys. I mean, romantic or not, I just like to think about them talking and making jokes with each other, and sharing stories about their respective killing games, the good and the bad. I’m kinda sad they hardly get any canon interaction.
I really do care a lot about Hin////aegi, and I am still running a ship week for them coming this July!!! It’s coming so soon and I’m so excited :D I have things planned for bringing up the Hina///egi hype starting in about two weeks (and I’ll hopefully be able to finish in time hahaha). I also seriously need to work on how twitter ship weeks work, lol.
I guess I’ll shamelessly plug in the event’s blog ^^; @hinaegifestival
I really want this event to do well!!! (You can probably tell though lol XD) I mean, even if only one or two people participate, I’d call it a success!
(An aside and worry: Keeping this between me and you and whoever stumbles across this post, I really hope other ship weeks, especially a certain one involving Ko, doesn’t overlap with the event because there’s a few people who ship both and would have to chose ^^; I don’t want it to come to that, lol. Not to mention I can already predict people would be complaining in the tags about one ship week or the other instead of doing something like blocking a tag or blog but that’s Tumblr for ya, right?)
4 notes · View notes
python-planet-blog · 8 years ago
Text
Rundown of Selenium and BeautifulSoup (BS4)
Hi everyone. For the first post here I am going to cover a topic that I've seen people ask about in online Python communities such as r/learnpython. This is a quick rundown of how to use Selenium and BeautifulSoup to interact with websites and parse html. Now, these concepts can be applied to do anything from scrape the web to automate processes and make bots.
Honestly, this first post is all the info you need to begin effectively working with these modules.
Let's start with
SELENIUM
Selenium is a web testing module that can be used to interact with web elements, which has applications such as the ones mentioned above.
To import selenium, I like to do the following:
   from selenium import webdriver    from selenium.webdriver.common.by import By    from selenium.webdriver.support.ui import WebDriverWait    from selenium.webdriver.common.keys import Keys    from selenium.webdriver.support import expected_conditions as EC    from selenium.common.exceptions import TimeoutException, NoSuchElementException, UnexpectedAlertPresentException, WebDriverException    from selenium.webdriver.chrome.options import Options
It doesn't add much load to import all of these, and you'll end up using most (probably all) if you are working with Selenium in any substantial way.
The last one is only necessary if you're using Chromedriver, not Firefox. I would reccomend chromedriver as it seems a bit faster and cleaner to me.
Next, we need to initailize our WebDriver object:
   opts = Options()    opts.add_argument("user-agent='your-user-agent")    driver = webdriver.Chrome('/path/to/chromedriver', chrome_options = opts)    driver.wait = WebDriverWait(driver, 15)
A few things here. One, where it says 'your-user-agent,' you should put your user agent (shocker). This isn't strictly necessary, but often the default python requests user agent will get blocked/rate limited by sites as everyone using python at a given moment without specifying their user agent is telegraphing that user agent.
To get your user agent, google 'what is my user agent.'
If you're using chromedriver, you need to put the path to where chromedriver executable is on your machine.
Otherwise, for Firefox:
   profile = webdriver.FirefoxProfile()    profile.set_preference('general.useragent.override','your-user-agent')    driver = webdriver.Firefox(profile)    driver.wait = WebDriverWait(driver, 15)
The driver.wait line sets the implicit wait for the WebDriver object. I'll get to that in a second.
So, now we've got the driver initialized, so let's interact with some web elements.
   driver.get(url)
This opens url in our webdriver.
Interacting with web sites via Selenium/bs4 is, like much of programming, consists largely of telling python what things are and then what to do to them.
To use Selenium (and bs4) you must use the Web Inspector to analyze your webpage and find out how to identify web elements. I reccomend using the web inspector in either Safari or Chrome, as these browsers offer the handy 'copy xpath' functionality.
We can identify web elements in a number of ways. We can use HTML tag attributes such as name, id, class name, tag name. We can use XPATH or CSS Selector. There are other options too, all listed here.
Tag names look like this:
<a href='https://www.reddit.com' class= 'title may-blank outbound' title= efwefwerfwf>... </a>
The 'a' is the tag name. The thing after class is the class. All other tag attrs (name, id etc) work like that. They're in orange/yellow in the safari web inspector.
CSS Selectors look like this:
   a.title.may-blank.outbound
XPATHs look like this:
   //*[@id="new_post_buttons"]/div[4]/div[2]/div/div[5]/div[1]/div/div[3]/div/div/button
You can get CSS selectors by mousing over elements in the Web Inspector. You can get xpath by selecting an element (click the target thing in Safari or the arrow thing in Chrome, and then click the desired element) and then right clicking the corresponding html (it will become highlighted) and clicking 'copy xpath.'
The syntax to find elements is as follows:
This returns the first matched web element (going down the source HTML):
link = driver.find_elements_by_xpath(’this-xpath’)
 And this returns a list of all matched elements:
  links = driver.find_elements_by_tag_name('a')
Detailed syntax, showing similar underscore syntax ways to find by the aforementioned parameters, can be found at the docs link from earlier.
This approach, using find_elements_by_xyz, uses an implicit wait (remember that from before?)
When the driver is told to find an element, it must first wait for the element to be loaded. Using an implicit wait means it will wait up to n seconds specified in
   driver.wait=WebDriverWait(driver, n)
before throwing a TimeoutException.
This is NOT THE BEST PRACTICE. I really only use implicit waits when I need a list of all the matched elements:
time.sleep(5)
my_xyzs = driver.find_elements_by_xyz(’my-xyz’)
my_fav_xyz = my_xyzs[9]
Technically, you shouldn't need the time.sleep(5)... but implicit waits can be inconsistent, so I throw it in there to make sure the page has loaded by the time Selenium looks to construct the list of matching elements.
So, most of the time, you should use explicit waits. Instead of finding elements via the find_element(s) commands, use:
   elem = driver.wait.until(EC.element_to_be_clickable(        (By.XPATH, 'my-xpath')))
Again, full syntax available which details all possible excepted conditions (the EC). This means that you can wait for the element in question to be clickable, visible, present, stale..you have a lot of options. Similarly, elements can be designated for waits By.XPATH, tag name, class name, css selector, and more.
But what if the element we need is only differentiated by an esoteric html tag attribute, I hear you lament.
Not to worry. We can use XPATH to designate a web element by ANY tag attribute.
   elem = driver.wait.until(EC.visibility_of_element_located(        (By.XPATH, '//[@attr="value"]')))
The above code designates elem as the web element on that page with tag attribute attr equal to 'value'. You can put a tag name in between the // and [ to specify further:
       '//div[@attr='value']'
This finds only div tags with attr='value'.
Once we have identified our web element by an HTML attribute, xpath, or css selector, and defined it in Python using selenium syntax, we can do many things to it:
   elem.click() #clicks elem    elem.send_keys('abc') #types 'abc' into elem    elem.get_attribute('href') # gets the 'href' attr of elem    elem.send_keys(Keys.COMMAND, 'v') #pastes -- all keyboard shortcuts are similarly available
One caveat on shortcuts: ChromeDriver on OS X does not support most keyboard shortcuts. If you have to paste on os x with chromedriver, the following will get the job done:
   elem.send_keys(Keys.SHIFT, Keys. INSERT)
It doesn't matter if your Mac doesn't have an insert key-- windows shortcuts seem to work on mac selenium. I imagine other shortcuts can be used on chromedriver using this workaround.
To get the html of a page loaded in the driver:
   driver.page_source
Other commands I use relatively often:
   driver.back() #goes back    driver.quit() #quits
----THAT'S IT!
I mean, there's more to Selenium, but that's more than enough info for you to discover the rest on your own.
BeautifulSoup
A lot of the HTML stuff from up there will translate well to bs4 as well. bs4 is used to parse HTML. If you want to scrape info from a website, or whatever, bs4 is going to help you do it. The syntax is VERY straightforward-- gotta love Python.
Like any great chef (and the bs4 docs) will tell you, first we need to make the soup.
   from bs4 import BeautifulSoup as bs4    driver.get('https://www.reddit.com')    soup = bs4(driver.page_source, 'html.parser')
So what's going on here? First, we import bs4. Then we use Selenium to open a URL. We then create our soup object. First argument is driver.page_source, meaning we want to parse the source html of the current driver page. Then, 'html.parser' specifies which parser we want to use. You can use lxml if you want. I have no idea what the difference is. If one isn't working, try switching-- this has never been a problem for me.
Go ahead and print
   (soup.prettify())
to see what's what here-- it'll be a bunch of HTML. You can print (soup.text()) to get just the text.
Ok, so how do we actually parse the HTML? We use the find() and find_all() methods.
   links = soup.find_all('a')
Both find and find_all accept a tag name as the first argument. The second argument is class_ (underscore to differentiate from Python classes).
   account_links = soup.find_all('a', class_='account')
The difference between find() and find_all() is that find() returns the first match and find_all() returns a list of matches.
As before, we can find()/find_all() by ANY tag attr, this time by passing a dict:
   names = soup.find_all('a', attrs={'id':'name'})
I find that SO nice. Hope you do too.
Now, these methods return tag(s). Meaning
   soup.find('div')
will find the first 'div' tag in the HTML, and return everything between its beginnning <div> and its end </div> 
I find that we rarely want the whole content of the tag haha. So, to grab just the TEXT in this tag, we can do:
   soup.find('div').text
Or, to get the value of any tag attribute:
   soup.find('a')['href'] #replace 'href' with whatver tag 'attr' you want to get the value of
FINALLY, a helpful tactic in web scraping: narrow your search!
If you want to go down LinkedIn Recruiter search results and grab everyone's name, first make a list of all the profile cards, and then look in each one for the name. That way you decrease the amount of 'p' tags (or whatever) in your search area and make it easier to grab the right ones.
e.g.:
   cards = soup.find_all('div',class_='profile_card')    for card in cards:        name = card.find('p')
And, actually, a helpful tactic in building bots/automating processes: you can use bs4 to scrape a website and make the bots job easier. If how to interact with the web elements to get your desired outcome is not immediately clear, pull up the web inspector and see if the link (or whatever, ember perhaps) you need is stored in the HTML somewhere! Then you can just pull
   driver.page_source
with bs4 and parse out what you need. Often, link 'suffixes' such as '/post/comments/12314141/this-is-a-great-post-man' will be stored in the 'href' attrs of HTML tags. You can parse that out and store it in link, and then do
   driver.get(url+link)
to save you some hassle. Just a thought.
Anyway, I hope you got some value from this. If so, LMK! I might make videos doing some examples or respond to specific questions or just otherwise maintain some sort of presence in this line of content.
1 note · View note