Python Automation for Remote Worker Series | Automate Website Interactions

Опубликовано: 28 Февраль 2025
на канале: Derrick Sherrill
33,196
1.4k

Automate Web Interacts ( We'll do this more with APIs in part #3)

Honestly each of these packages deserves full courses to go over all the cool things you can do with them. Hopefully this video gives you a quick overview of when and how to use them.

Kite helps fund the channel, thanks for checking them out and supporting me --
⭐ Kite is a free AI-powered coding assistant that will help you code faster and smarter. The Kite plugin integrates with all the top editors and IDEs to give you smart completions and documentation while you’re typing. https://www.kite.com/get-kite/?utm_me...

Download for driver: https://chromedriver.chromium.org/dow...

Remote Worker Automation Playlist :
   • Python Automation for Remote Workers ...  

Support the Channel on Patreon --
  / derricksherrill  
Join The Socials --
Reddit -   / codewithderrick  
FB -   / codewithderrick  
Insta -   / codewithderrick  
Twitter -   / codewithderrick  
LinkedIn -   / derricksherrill  
GitHub - https://github.com/Derrick-Sherrill
*****************************************************************
Full code from the video:
import requests
from bs4 import BeautifulSoup

from selenium import webdriver

url = 'https://www.derricksherrill.com'
response = requests.get(url)
print(response.status_code)
print(response.text)

soup = BeautifulSoup(response.text, 'html.parser')
print(soup.find_all('a')[1:5:1])

driver = webdriver.Chrome('./chromedriver')
url_to_search = 'https://www.gamestop.com/video-games/...

driver.get(url_to_search)

content = driver.find_element_by_xpath('//*[@id="primary-details"]/div[4]/div[12]/div[3]/div/div[1]/button')
print(content.text)

https://github.com/Derrick-Sherrill/P...

Packages (& Versions) used in this video:
Requests
BeautifulSoup4
Selenium

*****************************************************************
Code from this tutorial and all my others can be found on my GitHub:
https://github.com/Derrick-Sherrill/D...

Check out my website:
https://www.derricksherrill.com/

If you liked the video - please hit the like button. It means more than you know. Thanks for watching and thank you for all your support!!

36,475 subscribers at the time of writing. Y'all rock - thanks for your continual support. I wouldn't be making these videos if it wasn't for you guys. Thank you for keeping me motivated.

--- Channel FAQ --

What text editor do you use?
Atom - https://atom.io/

What Equipment do you use to film videos?
https://www.amazon.com/shop/derricksh...

What editing software do you use?
Adobe CC - https://www.adobe.com/creativecloud.html
Premiere Pro for video editing
Photoshop for images
After Effects for animations

Do I have any courses available?
Yes & always working on more!
https://www.udemy.com/user/derrick-sh...

Where do I get my music?
I get all my music from the copyright free Youtube audio library
https://www.youtube.com/audiolibrary/...

Let me know if there's anything else you want answered!

-------------------------

Always looking for suggestions on what video to make next -- leave me a comment with your project! Happy Coding!