Use THIS Algorithm To Find KEYWORDS in Text - A Short Python Project

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ธ.ค. 2024

ความคิดเห็น • 53

  • @brightsde3511
    @brightsde3511 2 ปีที่แล้ว +6

    This guy is definitly underated.

  • @duadox
    @duadox 2 ปีที่แล้ว +6

    Thank you so much for the video! You are also correct in that this is great practice for a newbie like myself. I am a researcher, so I have a lot of text files in my PC. Thanks to your video, I was able to convert your extract_text() into a function that opens local files with little effort. And then I looked up how to format decimals in the print function, and it turns out getting an even cleaner output with two decimal points is as easy as -> print("{:.2f}".format(rating), keyword). So thanks again for providing the opportunity and motivation to practice and learn more!

    • @JohnWatsonRooney
      @JohnWatsonRooney  2 ปีที่แล้ว +2

      That’s great! I really wanted this to be exactly that - when I was learning finding projects to make and then build upon was key in the learning process!

  • @giantdutchviking
    @giantdutchviking ปีที่แล้ว +2

    Thanks for sharing your knowledge. Started coding Python a few weeks ago through tutorials, ChatGPT and YT-vids. Started working with real data for the 1st time trying to do some basic text data analysis, this seems like a simply module to use, appreciate it.

  • @dimaua1830
    @dimaua1830 2 ปีที่แล้ว +6

    Thanks for the video! I love python because of ease of use and a multitude of handy little libraries like that!

    • @JohnWatsonRooney
      @JohnWatsonRooney  2 ปีที่แล้ว

      Me too, there’s always something to learn and explore!

  • @konigdererste4501
    @konigdererste4501 ปีที่แล้ว +1

    Exactly what I was searching for a long time. Thank you very much!

  • @usmanghani8657
    @usmanghani8657 2 ปีที่แล้ว +6

    I'm working on a project which includes scraping 200+ websites. You are great help on my way to complete project. God bless you sir and make all of us able to be more productive for the society.
    Big love 💌and respect from Pakistan Sir.

    • @JohnWatsonRooney
      @JohnWatsonRooney  2 ปีที่แล้ว +3

      Thank you and good luck with your project!

    • @100daychallange5
      @100daychallange5 2 ปีที่แล้ว

      Bro I need to make one generic script that will work on 3 sites with different structure. Is it possible and how I can do it?

    • @usmanghani8657
      @usmanghani8657 2 ปีที่แล้ว

      @@100daychallange5 yes you can use callback funtinalty to acess any many pages you want and scrapy them.

  • @AndresPerez-ow4lo
    @AndresPerez-ow4lo 2 ปีที่แล้ว +7

    Hi Jhon, great video! I was wondering, once you extract the keywords from different web pages refeiring to similar topics, how would you compare them?

  • @vbp1996sx
    @vbp1996sx 2 ปีที่แล้ว +2

    Hey Watson. Great video, very much appreciated. By the way are you working as a python developer irl? (asking out of curoisity)

    • @JohnWatsonRooney
      @JohnWatsonRooney  2 ปีที่แล้ว

      No I’m not a full time developer! I do work some freelance though and use Python in my day job for task automation

  • @hossamal-dinhassan9652
    @hossamal-dinhassan9652 2 ปีที่แล้ว +1

    Your channel is so helpful thanks for making this content

  • @colinrogers9927
    @colinrogers9927 2 ปีที่แล้ว +1

    Awesome. Great video

  • @AlbertLeonardo
    @AlbertLeonardo 2 ปีที่แล้ว +1

    Great video as usual! Thanks!

  • @tronovan3d
    @tronovan3d 2 ปีที่แล้ว +1

    Neat, thanks for the video.

  • @vntconcept
    @vntconcept 2 ปีที่แล้ว

    how about removing ads on wordpress theme?

  • @Hareesh-w3q
    @Hareesh-w3q 11 หลายเดือนก่อน

    Can I use this as a better alternative for the Text Analysis function of Power BI ?

  • @aviator1016
    @aviator1016 2 ปีที่แล้ว +2

    Hey can you please tell me how to install the library into vs code. I have already installed it using pip installer from the terminal but everytime I get the message that import rake_nltk could not be resolved. Thanks

    • @JohnWatsonRooney
      @JohnWatsonRooney  2 ปีที่แล้ว

      Hey sounds like maybe you have a Python path issue? Try running Python in your terminal and try importing it there and see if it works.

  • @nicholasgabaldon657
    @nicholasgabaldon657 ปีที่แล้ว

    Do you know the hostname it is trying to connect to when you import the nlk stopwords and punkt?

  • @KhalilYasser
    @KhalilYasser 2 ปีที่แล้ว +1

    Thank you very much. Amazing tutorial.

  • @return_1101
    @return_1101 2 ปีที่แล้ว

    Thank you very much.
    With your help I made a "keyword_searcher.py" with requests, bs4 rake_nltk and fake_useragent.
    It's amazing how to search for keywords.

  • @hayat_soft_skills
    @hayat_soft_skills 2 ปีที่แล้ว +1

    Superv! Thanks!

  • @experiencinglunistice
    @experiencinglunistice 2 ปีที่แล้ว +1

    Thank you very much

  • @wangdanny178
    @wangdanny178 2 ปีที่แล้ว +1

    Hey John me again. It’s in my watch later already. Thanks ahead

  • @cicerocostahernandez
    @cicerocostahernandez 2 ปีที่แล้ว

    Hello John? Wassup? Nice video man! Let me ask you, in the URL you put the link from a website, but could I set a code in order to automatize the insertion of it using a database with the link and repeat the process for other websites? Another question, could I search for specific keywords in each website link, instead of all?

  • @nbc2081
    @nbc2081 2 ปีที่แล้ว

    Pls I want to build an algorithm that can use key words to rate articles which I want to use

  • @yusufcan1304
    @yusufcan1304 10 หลายเดือนก่อน

    Thanks for share.

  • @adnanyeasir7965
    @adnanyeasir7965 2 ปีที่แล้ว

    I am having issue importing nltk

  • @aniketbahukhandibtech-cse-9176
    @aniketbahukhandibtech-cse-9176 2 ปีที่แล้ว

    hey john can u tell me how can i scrape geo location of crimes in my region. please reply..

  • @anthony2921
    @anthony2921 ปีที่แล้ว

    there’s always a guitar in the background of code tutorial videos

  • @ztech3401
    @ztech3401 ปีที่แล้ว +1

    sir , can I using this code for my app ?

  • @olgaycelik2631
    @olgaycelik2631 2 ปีที่แล้ว +1

    I am new to this so How and where to install nltk?

    • @codewithlenny
      @codewithlenny 2 ปีที่แล้ว

      run
      pip install ntlk
      Once it's done. Open your terminal / command line and type the following commands
      > python
      > import nltk
      > nltk.download()
      This will open up a window that allows you to install the remaining nltk resources

    • @olgaycelik2631
      @olgaycelik2631 2 ปีที่แล้ว

      @@codewithlenny thank you I have a last question:
      when I press print then I am getting those errors:
      * import bs4 could not be resolved from source
      *import requests could not be resolved from source
      So how to fix them?

  • @sohanoor3291
    @sohanoor3291 2 ปีที่แล้ว

    Hi Rooney,
    I need little help. Can we extract text from class instead of div using this method:
    response.html.find('div.class_name', first=True).text
    I tried, but now worked. Please help me.
    Regards

  • @atultanna
    @atultanna 2 ปีที่แล้ว

    Can you share the code for scrape KW from Google Autosuggest

  • @michaelnoardo3315
    @michaelnoardo3315 2 ปีที่แล้ว

    I'm trying to write a code to list the 1000 most used words in some language, I will feed the code with articles, books , movie subtitles... This will help people learning language to focus on what is most important, can you help me?

  • @ThinAirElon
    @ThinAirElon 2 ปีที่แล้ว +2

    Super 👍

  • @hamzakhiar3636
    @hamzakhiar3636 2 ปีที่แล้ว

    Regex :👀

  • @GymPolar
    @GymPolar 10 หลายเดือนก่อน

    Thankyou

  • @PerfectmindAMV
    @PerfectmindAMV 2 ปีที่แล้ว +2

    please, make a video of machine learning in python 🙂