Startup Automation With Python (API's + Webscraping)

Поділитися
Вставка
  • Опубліковано 15 січ 2025

КОМЕНТАРІ • 210

  • @tanishksinghsirohi7206
    @tanishksinghsirohi7206 4 роки тому +61

    It is very hard to upload video everyday with good editing.
    He is one of the most hardworking youtuber

  • @kezy2695
    @kezy2695 4 роки тому +200

    The quality of the desktop record is so low!

    • @BryanJenks
      @BryanJenks 4 роки тому +5

      if he uploaded this today and not in advance and scheduled, youtube takes time to transcode the HD video. his cam probably looks good so far because its likely a DSLR hooked straight into the computer, give it some time and the resolution will be there :)

    • @kezy2695
      @kezy2695 4 роки тому +5

      @@BryanJenks but it has already transcoded to the HD video even to 4k video :).

    • @metastag
      @metastag 4 роки тому +2

      Yes, I could not read what was written on the terminal even at 1080p

    • @BryanJenks
      @BryanJenks 4 роки тому +3

      @@kezy2695 weird... i wonder if it was a rendering issue o_O

    • @Hunt92
      @Hunt92 4 роки тому +3

      Its that his desktop ratio is big and the dimensions of our video format doesn't really match that so they feel a little squeezed

  • @BryanJenks
    @BryanJenks 4 роки тому +37

    Dude, you're one of my biggest youtube inspirations, inspired me to REALLY want to learn python better. Love your aesthetic and how you balance nature and tech!

  • @louzynerd129
    @louzynerd129 4 роки тому +7

    what I love about this channel is the fact that when he sees a good comment about a video idea he makes a video about it, such a great channel I love it

  • @metastag
    @metastag 4 роки тому +8

    At 5:35, instead of cleaning up the list every time the program is executed, you should do it just once, then save it an an external file, and then import it. Also, at 6:00, instead of choosing a random number within the list index range, and then selecting the element at that index, you can simply choose a random element from the list, by random.choice(bird_list)

  • @ak1ra492
    @ak1ra492 4 роки тому +83

    Great video, would be good to try and improve the desktop recording as it does degrade what you're trying to show. Keep up the good work.

  • @sanjay50012
    @sanjay50012 4 роки тому +10

    Selenium has WebDriverWait and expected_conditions which can check if an element is loaded and then proceed on further.Time.sleep is still a good idea but page load times are inconsistent and variations can occur in network speed.Great video btw

    • @VentiFriedChicken
      @VentiFriedChicken 4 роки тому

      Awesome critique! As I look to replicate Kalle’s code I will see if I can successfully incorporate this tweak 💪🏾🙏🏾

    • @sanjay50012
      @sanjay50012 4 роки тому +1

      @@VentiFriedChicken if you've time I would suggest you to read Web Scraping with python Oreilly by Ryan Mitchell. It covers most scraping use cases in an intuitive way

    • @VentiFriedChicken
      @VentiFriedChicken 4 роки тому +1

      @@sanjay50012 awesome! I will look to add it to the collection. I have a project coming up where I will most likely need to scrape to make up for a gap in data 🙏🏾

  • @Ecupable
    @Ecupable 4 роки тому +1

    I really appreciate these sort of videos. Great inspiration, and learning too, for a realtively low level python user like me. In fact, I like that your code isn't optimized and perfect,. You rather show your projects as they are, kinks and all. That lead me to have a great time learning by other experienced programmers in the comment section, who all contributed with different ways to solve the same problem. Keep it up Kalle!

  • @georgebassemfouad
    @georgebassemfouad 4 роки тому

    Believe me the best thing ever happened to this channel is the daily videos especially the automation videos that I like thank you

  • @vaughnsmith5337
    @vaughnsmith5337 4 роки тому +20

    This is awesome! I just woke up but you motivate me to jump on my computer and code

  • @HelloWorldCode
    @HelloWorldCode 4 роки тому +18

    Nice idea! Really difficult to read the text on your screen though

    • @ScienceSeekho
      @ScienceSeekho 4 роки тому +1

      Seems that his monitor resolution and recording resolution is different

  • @shivamshandilya5059
    @shivamshandilya5059 4 роки тому +1

    9:01 Use explicit wait and implicit wait to stop selenium from getting to another function.

  • @conqu3red545
    @conqu3red545 4 роки тому +2

    Your videos are awesome!
    This has motivated me to get on with some automation tasks I still need to finish. Thanks for making all the content you do, it's really helped and inspired me :)

  • @khushchauhan8891
    @khushchauhan8891 4 роки тому +1

    Have you considered using the requests module instead of selenium as it’s a lot faster.

  • @anonyme103
    @anonyme103 4 роки тому

    The first thing popped into my head as a data scientist and ml practitioner: "a pretrained RNN(a neural network basically) could generate new names based on existing ones"

  • @bradyredding1964
    @bradyredding1964 4 роки тому +1

    Awesome! I always love the automation video’s - keep up the good work!

  • @ananddhruv29
    @ananddhruv29 4 роки тому +1

    What code editor is it?

  • @Girasole4ever
    @Girasole4ever 4 роки тому +1

    is it possible that you forgot to swap back the original video file instead of the proxies in premiere pro?

  • @OurPastSecrets
    @OurPastSecrets 4 роки тому

    hey mate, is UA-cam your full time job now or do you do development work too?

  • @onlysteil
    @onlysteil 4 роки тому +1

    Is there not an API from GoDaddy! where can be used instead of Selenium?

  • @UnMarkedPanic
    @UnMarkedPanic 4 роки тому

    Cool, is there is any Github fork for the code in the video?

  • @emerald0936
    @emerald0936 4 роки тому

    Can you add the podcast link ??

  • @naayif9034
    @naayif9034 4 роки тому

    Did you have kali linux on the background desktop?

  • @monkyspnk777
    @monkyspnk777 4 роки тому

    Hi Kalle, how would you setup a toolbox of sorts that would allow for multiple tools like this to run as needed? Some sort of corn job that saves the output to a file and run other scraping tasks at the same time?

  • @samueldemissie2403
    @samueldemissie2403 4 роки тому +6

    You just solved my problem which i was trying to fix this 3 days. THANKS.

  • @flightrisk7566
    @flightrisk7566 4 роки тому

    just realized i wasn’t subbed to you , am now
    i’ve been watching your vids for a bit now i love them thanks

  • @noah77
    @noah77 4 роки тому +1

    Intro was epic

  • @egehanasal710
    @egehanasal710 4 роки тому

    my fav type of video it is ! love your work bro

  • @jaspreetsinghkohli3277
    @jaspreetsinghkohli3277 4 роки тому

    at 9:30 you can use browser.implicitly_wait(20)

  • @dragon_warrior_
    @dragon_warrior_ 4 роки тому

    Wow what was the intro song?

  • @thedeegan
    @thedeegan 4 роки тому +9

    What happend to vim and linux?

  • @Nexus-rt1bm
    @Nexus-rt1bm 4 роки тому

    Kyle: *Makes automation tutorial*
    UA-cam: *plays ad about the war against bots*

  • @shriramnirmal5535
    @shriramnirmal5535 4 роки тому

    can i work on this and update this project in my resumae ?

  • @franky12
    @franky12 4 роки тому +1

    Good idea, but I have a few remarks:
    1. i would call the Birds API only once and then save the list of names in a file. The data is static, so why query the API all the time?
    2. selenium has explicit wait functions (instead of time.sleep)
    3. i would rather use requests and beautifulsoup4. Selenium is easier in the first moment. But every few weeks my Selenium scripts do not work anymore. Every time Chrome is updated, you have to update the chrome drivers manually...
    4. there are already public APIs that allow you to search for (free) domains. Just google for them. I would rather use these APIs than scrape the website?
    5. or just use whois or the corresponding Python library?

  • @axelrod4840
    @axelrod4840 4 роки тому

    Yeeees. I love automation. I started learn python after ur videos☺

  • @TheShockwave666
    @TheShockwave666 4 роки тому

    I'm watching every video to the end. Your work is amazing.

  • @reheyesd8666
    @reheyesd8666 4 роки тому +12

    Try
    Try putting browser.get(url) in a variable
    Do something like this
    webURL = browser.get(url)
    if webURL:
    Then you may not have to use the time.sleep function
    Personally i use
    import webbrowers
    webbrowser = webbrowser.open(URL, new=2)
    if webbrowser:
    do something
    seems to work although this module actually opens up a browser i imagine its a similar principle. Basically what happens is the if statement waits to see if the browser is loaded or not and when it is it does something. Let me know if it works

    • @triton62674
      @triton62674 4 роки тому

      I'll give this a go thx

    • @omar_benaidy
      @omar_benaidy 4 роки тому

      how about async/await to resolve this problem ?

  • @plusk343
    @plusk343 3 роки тому

    5:50 you could actually just do random.choice(birdList) to pick a random object from the list.

  • @walterjab
    @walterjab 4 роки тому

    Did you do a crawler? I'd like to have my own mini search engine ... ;-) where I can filter results as I need them (using keywords with logic)

  • @hashbrrrown
    @hashbrrrown 3 роки тому +1

    why am i getting a problem here: from tokens import get_creds

  • @habibabdurrasyid3538
    @habibabdurrasyid3538 4 роки тому

    Crawling over websites using selenium is slow for some cases. But wdyt about using requests-html? It could crawl website with javascript rendered too

  • @jovanemullings
    @jovanemullings 4 роки тому

    why did you stop use flutter and dart ?

  • @nilanjanabetal709
    @nilanjanabetal709 3 роки тому

    Your videos are really helpful and motivating.Thank you.

  • @lucasfernandeslima7474
    @lucasfernandeslima7474 4 роки тому

    Hey bro, thanks for the video! But I got one question: why are you using sublime text if you have recommended Kite on the video? Which one is better? I’m currently using sublime, should I migrate to kite?

  • @dattamadasu1600
    @dattamadasu1600 4 роки тому +3

    How can you release a video every day?🤔

  • @davimiquelim4680
    @davimiquelim4680 3 роки тому

    Dude I am loving kite

  • @peroquecoincidencia9991
    @peroquecoincidencia9991 4 роки тому

    hi kalle can you show us how to do an ecommerce with django?

  • @Kris-to7vh
    @Kris-to7vh 3 роки тому

    9:00 I had the same issue. In order to solve it u need to import this from the selenium library.
    They will allow u to execute action after an element is present/clickable depending on the EC.function u call.
    Here's an example u should be able to paste at line 16-17:
    from selenium import webdriver
    from selenium.webdriver.common.by import By
    from selenium.webdriver.support.ui import WebDriverWait
    from selenium.webdriver.support import expected_conditions as EC
    element_xpath = YOUR XPATH
    try:
    button = WebDriverWait(browser, 10).until(EC.element_to_be_clickable((By.XPATH, element_xpath)))
    button.click()
    except Exception as e:
    print(e)

  • @jsp2518
    @jsp2518 4 роки тому

    Totally out xD but which is the watch he is wearing? loosk cool

  • @roaaalgahrib5297
    @roaaalgahrib5297 4 роки тому

    Very good thanks alot💙💙💙

  • @SSouper
    @SSouper 4 роки тому +1

    you can just try to resolve the actual domain you want to check and if it comes back as NXDOMAIN instead of scraping godaddy...this method is orders of magnitude faster and can be multi threaded.

  • @anime4ever214
    @anime4ever214 4 роки тому

    This amazing love your content so far , keep it up 👍

  • @vedsingh1528
    @vedsingh1528 4 роки тому

    Please explain how can we host our bot so that we don't have to switch on our pc to run it...hope u understand

  • @kaveenhansajith7870
    @kaveenhansajith7870 4 роки тому

    What should i use Linux for python programming

  • @ShubhamSharma-es8tw
    @ShubhamSharma-es8tw 4 роки тому +2

    screen recording blurry :(

  • @zaraf
    @zaraf 4 роки тому +1

    9:30 lol i do the exact same thing, but it is quite destructive to do this

  • @khushchauhan8891
    @khushchauhan8891 4 роки тому

    Use the statement if len(driver.find_elements_by_xpath(“”) > 0:
    If it’s >0 it means the element is available else it has not loaded yet

  • @adityathakkar9333
    @adityathakkar9333 4 роки тому

    I want to know where do you write these python programs, which platform do you use and how you use the command prompt to run these programs. So, can you make a video and explain how to use that. I am just stuck with Jupyter. It will be really helpful to know about this thing

  • @rockNbrain
    @rockNbrain 4 роки тому

    Great job Kalle !

  • @luisweber976
    @luisweber976 4 роки тому

    I love those automation ideas and does videos

  • @robjiang
    @robjiang 4 роки тому

    The text is a bit hard to ready on my monitor, not sure if there is something going on with your screen capture resolution. Otherwise, awesome video!

  • @datawulf88
    @datawulf88 4 роки тому

    cool input on webscrape-possibilities. plz go on with that stuff ;)
    but: is it just me or is the text-rendering off?

  • @dyvel
    @dyvel 4 роки тому +1

    Even at 4K the resolution of regions of the video containing text is extremely low :/

  • @saltylelele
    @saltylelele 4 роки тому

    Your print can be optimized. I recommend using Multi-Line print instead of adding multiple ones. ex.
    print('normal 1')
    print*normal 2')
    print('''
    multi 1
    multi 2
    ''')

  • @invizii2645
    @invizii2645 4 роки тому +1

    You shouldn't use selenium. You should use beautiful soup or lxml. A lot faster and easier to set up.

    • @ian8502
      @ian8502 4 роки тому

      To be fair, Selenium supports xpath, which can make your selectors much more robust and future proof, although in most cases Scrapy is my preferred option, especially as it's asynchronous, which means it's so fast.

    • @invizii2645
      @invizii2645 4 роки тому

      @@ian8502 lxml uses xpath, so that's not really a problem. Both BeautifulSoup and Scrap use lxml under the hood.

  • @Oscar-cw8so
    @Oscar-cw8so 4 роки тому +1

    Please use Python Requests for your next python webscraping project. For simple projects it's much more efficient and easy to use. No selenium headaches ect.. Keep up the vids ;)

  • @brainscott
    @brainscott 4 роки тому +1

    is it me or is the text in the terminal and editor very unreadable.. watching the Video in HD and tried 4K

  • @mmohammed8286
    @mmohammed8286 4 роки тому

    can i create same start up with javascript

  • @landob6393
    @landob6393 4 роки тому

    do I learn java or python? I want to do some http requests, web scrape, and make some simple programs I guess. Java seems so complicated when sending requests.

  • @d3bug646
    @d3bug646 4 роки тому

    thanks for all the inspiration

  • @akorenkov
    @akorenkov 4 роки тому

    That Kite link starts to download their executable when you visit the site, that shitty.

  • @kocraft137
    @kocraft137 4 роки тому +1

    Where are you from, and how old?

  • @fernandobarros3558
    @fernandobarros3558 3 роки тому

    This idea is realy good

  • @murodjonmakhmudov9145
    @murodjonmakhmudov9145 4 роки тому

    Can you put the link of the intro music

  • @isiraadithya
    @isiraadithya 4 роки тому

    Hey can you do a video on mitmproxy and how to use it? plz

    • @khushchauhan8891
      @khushchauhan8891 4 роки тому

      I have I git hub repo with an application that will ssl pin for you if that’s what you are looking for

    • @isiraadithya
      @isiraadithya 4 роки тому

      @@khushchauhan8891 yeah that will be helpful. thx a lot for replying quickly.

  • @uditysingh1316
    @uditysingh1316 3 роки тому

    why dont you use wsl

  • @villadseskesen
    @villadseskesen 4 роки тому

    1. Request library would've been better and faster here.
    2. Maybe make it look through 300 domains and everytime it finds an available one, it saves it in a log file. And then maybe sends a push message to the user when done searching.

  • @高鹏-f3j
    @高鹏-f3j 4 роки тому

    The code in the video is a bit vague. I don't know if other people are the same.

  • @peterst6906
    @peterst6906 4 роки тому

    What happened to Vim?

  • @matt526
    @matt526 4 роки тому

    Great video! I think I would extend it so you're only alerted to available domains that cost less than a certain amount (based on the value within the price section on the website).

  • @kaarteeek
    @kaarteeek 4 роки тому

    Kalle your video quality is very good but please make the screen recording quality a bit better,,it is hardly visible in 360p

  • @MichaelCastillo
    @MichaelCastillo 4 роки тому

    Love the video but it's hard to read the code.

  • @kishmatbhattarai
    @kishmatbhattarai 4 роки тому

    how to install tokens?

  • @Gautamgireesh26
    @Gautamgireesh26 3 роки тому

    Is this on github?

  • @soorajh9480
    @soorajh9480 4 роки тому

    that intro music never gets old

  • @thesouthsidedev1812
    @thesouthsidedev1812 4 роки тому

    Having trouble installing the token module anytips guys

  • @sogood007ha
    @sogood007ha 4 роки тому

    Someone know where I can find the source ?

  • @adiankonina
    @adiankonina 4 роки тому

    love your video

  • @thipireddypavan707
    @thipireddypavan707 4 роки тому

    I am having problems while setting up selenium..can any one help?

  • @Trazynn
    @Trazynn 4 роки тому

    I love the content but the resolution of your actual IDE is quite low which makes it hard to read. Surely there's a way to increase that for further videos?

    • @Trazynn
      @Trazynn 4 роки тому

      @@BryanJenks You promised me I would get $50 to my paypal if I made that comment on this video but you haven't paid anything yet. If I'm not seeing anything by tomorrow I'm removing it again.

  • @finhar1986
    @finhar1986 4 роки тому +1

    Love the vedios 👍

  • @hendrywijaya1017
    @hendrywijaya1017 4 роки тому

    how about webscrapping with python and then doing Exploratory Data Analysis, and then Visualize the data, and...make a machine learning model

  • @adityadeshpande3037
    @adityadeshpande3037 4 роки тому

    @kalle hallden your videos are inspiring...love them...btw ...I love your intro music also...which music track?

  • @abhishekmudgal59
    @abhishekmudgal59 4 роки тому +1

    Use implicit wait

  • @axli4782
    @axli4782 2 роки тому

    where is the code?

  • @4bbiss
    @4bbiss 4 роки тому

    your intro song is sick

  • @Tejassuthar777
    @Tejassuthar777 4 роки тому

    Can’t read anything on the screen.

  • @tejparmar3440
    @tejparmar3440 4 роки тому

    Can you make a video on web designing?

  • @web_masud
    @web_masud 4 роки тому

    okay okay you are looking awesome

  • @Uncreeperble
    @Uncreeperble 4 роки тому +1

    woo an upload