avatarPetiri Ira

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

3295

Abstract

<pre><span class="hljs-keyword">import</span> re </pre></div><div id="c233"><pre><span class="hljs-keyword">import</span> json </pre></div><div id="eaf2"><pre><span class="hljs-meta">#Save the URL</span></pre></div><div id="36f9"><pre><span class="hljs-attr">url</span> = <span class="hljs-string">'https://www.ted.com/talks/malcolm_gladwell_choice_happiness_and_spaghetti_sauce/'</span></pre></div><div id="91da"><pre><span class="hljs-comment">#Get the URL</span>

r = requests.<span class="hljs-built_in">get</span>(url) <span class="hljs-built_in">print</span>(<span class="hljs-string">"Download about to start"</span>)</pre></div><div id="6b2a"><pre><span class="hljs-selector-id">#Get</span> the <span class="hljs-attribute">content</span> from the URL r.<span class="hljs-attribute">content</span></pre></div><div id="45d5"><pre><span class="hljs-meta">#Get the status</span> r.status_code</pre></div><div id="ccf7"><pre><span class="hljs-comment">#Save the content of the URL to soup</span> <span class="hljs-attr">soup</span> = BeautifulSoup(r.content, <span class="hljs-string">"html.parser"</span>)</pre></div><div id="8fc9"><pre><span class="hljs-comment">#Get specific content using an id, parse a valid JSON string and convert it into a Python Dictionary</span> next_data_script = soup.<span class="hljs-built_in">find</span>(<span class="hljs-attribute">id</span>=<span class="hljs-string">"NEXT_DATA"</span>)</pre></div><div id="f67f"><pre><span class="hljs-meta">#Call next_data_script</span> next_data_script</pre></div><div id="fc42"><pre>#<span class="hljs-keyword">Read</span> the id <span class="hljs-keyword">as</span> a <span class="hljs-keyword">string</span> data_json = next_data_script.<span class="hljs-keyword">string</span></pre></div><div id="cef0"><pre><span class="hljs-meta">#Call data_json</span> data_json</pre></div><div id="7f38"><pre><span class="hljs-selector-id">#Read</span> json data player_data = json<span class="hljs-selector-class">.loads</span>(data_json)<span class="hljs-selector-attr">[<span class="hljs-string">'props'</span>]</span><span class="hljs-selector-attr">[<span class="hljs-string">'pageProps'</span>]</span><span class="hljs-selector-attr">[<span class="hljs-string">'videoData'</span>]</span><span class="hljs-selector-attr">[<span class="hljs-string">'playerData'</span>]</span></pre></div><div id="70b7"><pre><span class="hljs-meta">#Call player_data</span> player_data</pre></div><div id="f309"><pre><span class="hljs-selector-id">#Read</span> json data from the url url_content = json<span class="hljs-selector-class">.loads</span>(player_data)<span class="hljs-selector-attr">[<span class="hljs-string">'resources'</span>]</span><span class="hljs-selector-attr">[<span class="hljs-string">'h264'</span>]</span><span class="hljs-selector-attr">[0]</span><span class="hljs-selector-attr">[<span class="hljs-string">'file'</span>]</span></pre></div><div id="e9b9"><pre><span class="hljs-comment">#Save the content from the url</span> <span class="hljs-attribute">url_content</span></pre></div><div id="d7db"><pre><span class="hljs-comment">#Get the content of the MP4 file</span> <span class="hljs-attr">mp4_response</span> = requests.get(url_content)</pre></div><div id="3201"><pre>#Get the response <span class="hljs-keyw

Options

ord">code</span> mp4_response.status_code</pre></div><div id="14eb"><pre><span class="hljs-comment">#Save the mp4 file</span> <span class="hljs-attr">file_name</span> = <span class="hljs-string">'ted_talk_video.mp4'</span></pre></div><div id="d6c7"><pre>#<span class="hljs-keyword">Write</span> the content <span class="hljs-keyword">of</span> the MP4 <span class="hljs-keyword">file</span> <span class="hljs-keyword">to</span> the output <span class="hljs-keyword">file</span> <span class="hljs-keyword">with</span> open(file_name,<span class="hljs-string">'wb'</span>) <span class="hljs-keyword">as</span> f: f.<span class="hljs-keyword">write</span>(mp4_response.content)</pre></div><p id="5cef">You have successfully downloaded a TED Talk Video! 👏</p><div id="8ae6" class="link-block"> <a href="https://github.com/natnew/200-Projects-For-Beginners-Using-Python-Series.git"> <div> <div> <h2>GitHub - natnew/200-Projects-For-Beginners-Using-Python-Series</h2> <div><h3>You can't perform that action at this time. You signed in with another tab or window. You signed out in another tab or…</h3></div> <div><p>github.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/0*a-J0L1aWGgzpj2BI)"></div> </div> </div> </a> </div><figure id="3f17"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/0*Xgcym2OvshGXTxDo"><figcaption>Photo by <a href="https://unsplash.com/@emilbruckner?utm_source=medium&amp;utm_medium=referral">Emil Bruckner</a> on <a href="https://unsplash.com?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h2 id="e459">Final Words 🤗</h2><p id="d823">This article explored a Python automation project that enables users to download TED talk videos using the provided source code. By leveraging libraries like requests and BeautifulSoup, users can automate the process of extracting video URLs and saving the corresponding MP4 files locally. Start downloading TED talks effortlessly with this handy tool!</p><p id="9027">Thank you for reading this article! 🤗 <i>I really appreciate it!</i></p><p id="ea77"><i>If you enjoyed this article, you can help me share this knowledge with others by<b>👏clapping, 💬commenting, and be sure to 👤+ follow me.</b></i></p><p id="3232"><b>Wait a second.</b> <i>To write on Medium and earn passive income, use this <a href="https://medium.com/@natashanewbold/membership">referral link</a> to become a member. ✏️.</i></p><div id="a416" class="link-block"> <a href="https://medium.com/subscribe/@natashanewbold"> <div> <div> <h2>Get an email whenever Natasha publishes.</h2> <div><h3>Get an email whenever Natasha publishes. By signing up, you will create a Medium account if you don't already have one…</h3></div> <div><p>medium.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/0*OLS21xUZu1jI117U)"></div> </div> </div> </a> </div></article></body>

Why Racism Won’t Let Black Women Like Angel Reese Enjoy The Limelight

Why White feminism and misogynoir always show up to downplay the accomplishments of Black women.

NCAA Photos via Getty Images

This past weekend Louisiana State University beat the University of Iowa in the women's NCAA tournament final to win their first championship. It was a historical win, to see LSU take the stage and win the title was a proud moment for many Black people across the globe. However, the LSU Tigers' dominance and great accomplishments are being overshadowed by two agents of racism; White feminism and misogynoir.

It seems that whenever Black women are vocal and expressive of their emotions—good or bad—they get criticised for being their unapologetic and authentic selves. LSU player Angel Reese was undoubtedly fantastic throughout the tournament as she was named the 2023 Women's Final Four Most Outstanding Player. Though when Angel showcased her emotions and competitive nature the internet was outraged, outraged to see a Black woman win and receive her flowers.

Society will attempt to find any avenue to attack Black women when we are expressive of our emotions. It happened to Angel Reese when she was labelled as “classless”, and “disrespectful” for pointing her ring finger and making a “you can’t see me” gesture to her opponent Caitlin Clark. Reese was condemned for bad sportsmanship, but her opponent, Clark, of Iowa was not criticized when she made the exact same gesture. Some may say that Caitlin Clark and Angel Reese's competitiveness wrongly is being made about race, but that is the reality of it, it is about race. As a White player, Caitlin Clark did not receive backlash for making the “you can’t see me” gesture to Angel Reese she was perceived as being competitive. But for Angel Reese, the same standards don't apply because she is a Black woman, who has achieved an outstanding accomplishment, in a society that does not like to give Black women praise. So instead of congratulating Angel Reese society decided to police Angel Reese for doing the same thing her White opponent Caitlin Clark did.

This is the pinnacle of how racism always permeates itself into spaces where Black women simply exist without disrupting anyone. Because of racism and sexism Black women face misogynoir. There is an ingrained prejudice in society's mind to downplay anything a Black woman does or doesn't do. For Angel Reese to be condemned by critics as unprofessional is a double standard when non-Black players quite frankly do the same actions as she did; simply being expressive.

Racism won't let Angel Reese enjoy the limelight because of White feminism. LSU is a team with a majority of Black players and that fact bothers people because large parts of society do not want to see Black women reach new heights. They expect Black women to sit down in silence and seek White validation. Although, Black women will no longer sit in silence and be hushed by racism. When Black women love themselves and on their own accord, racism rumbles because racism cannot survive without whiteness being the centre of attention.

On Monday, Jill Biden congratulated both teams for their Sunday performances.

“Last night, I attended the NCAA women’s basketball championship,” said Biden, while speaking at an event at the Colorado State Capitol in Denver.

“So I know we’ll have the champions come to the White House, we always do. So, we hope LSU will come but, you know, I’m going to tell Joe [Biden] I think Iowa should come, too, because they played such a good game.” (Via CNN)

The First Lady's suggestion to invite Iowa is the perfect example of White feminism because even as national champions, LSU is being denied the opportunity to shine. Inviting the University of Iowa to the White House is a slap in the face to LSU because once again Black women would have to share the stage with the runner-up and White women's feelings would be re-directed to centre stage.

Even though Jill Biden's press secretary walked back on the comment about inviting Iowa to the White House, saying that she meant to applaud “all women athletes” it still downplays the accomplishments of the LSU team because putting the word all diminishes Black women's existence as Black women have a nuanced experience and cannot be clumped into the category of all.

Iowa’s Caitlin Clark said Tuesday that Iowa shouldn’t be invited to the White House.

“I don’t think runner-ups usually go to the White House. I think LSU should enjoy that moment for them and congratulations, obviously, they deserve to go there. Maybe I could go to the White House on different terms though,” Clark said. “That’s for LSU. That’s a pretty cool moment and they should enjoy every single second of being a champion.” (Via CNN)

To divert the attention to Iowa is directly downplaying the accomplishments of the Black women on LSU's team. Racism should not be able to sweep through and water down LSU's title win.

It is important to acknowledge and call out racism when it permeates itself into every space where Black women exist and makes their presence felt. The backlash towards Angel Reese clearly showcases some members of society's stance on their attitudes towards seeing Black women succeed. Our success and our presence on the main stage under the bright lights clearly makes people uncomfortable because of the abrasiveness towards Blackness. People will continue to downplay the achievements of Black athletes under respectability politics, misogynoir and prejudice but Blackness will always prevail. The Louisiana State Tigers should enjoy their title win without racism's jealousy.

✍️ More about the author

📕 Sign up here to read my stories and thousands more on Medium

BlackLivesMatter
Racism
Feminism
Justice
Politics
Recommended from ReadMedium