Use THIS Algorithm To Find KEYWORDS in Text - A Short Python Project
HTML-код
- Опубликовано: 30 мар 2022
- Here's a great short beginner project using the RAKE algorithm to extract keywords from review text that we scraped online. Rake stands forRapid Automatic Keyword Extraction which uses the frequency of words in the text to score up key phrases.
package used: csurfer.github.io/rake-nltk/_...
my code: github.com/jhnwr/rake-on-reviews
Support Me:
Patreon: / johnwatsonrooney (NEW)
Oxylabs: oxylabs.go2cloud.org/aff_c?of... - code JR15
Amazon UK: amzn.to/2OYuMwo
Hosting: Digital Ocean: m.do.co/c/c7c90f161ff6
Gear Used: jhnwr.com/gear/ (NEW)
-------------------------------------
Disclaimer: These are affiliate links and as an Amazon Associate I earn from qualifying purchases
------------------------------------- - Наука
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!
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!
Exactly what I was searching for a long time. Thank you very much!
Thanks for the video! I love python because of ease of use and a multitude of handy little libraries like that!
Me too, there’s always something to learn and explore!
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?
Your channel is so helpful thanks for making this content
This guy is definitly underated.
TOtally he should have 1 million subs
Neat, thanks for the video.
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?
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.
Thank you very much. Amazing tutorial.
Thank you very kind
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.
Thank you and good luck with your project!
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?
@@100daychallange5 yes you can use callback funtinalty to acess any many pages you want and scrapy them.
Awesome. Great video
Thanks!
Superv! Thanks!
Hey Watson. Great video, very much appreciated. By the way are you working as a python developer irl? (asking out of curoisity)
No I’m not a full time developer! I do work some freelance though and use Python in my day job for task automation
Do you know the hostname it is trying to connect to when you import the nlk stopwords and punkt?
Thank you very much
hey john can u tell me how can i scrape geo location of crimes in my region. please reply..
Thanks for share.
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
Can I use this as a better alternative for the Text Analysis function of Power BI ?
how about removing ads on wordpress theme?
Pls I want to build an algorithm that can use key words to rate articles which I want to use
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.
Great video as usual! Thanks!
Thank you!
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
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.
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?
Thankyou
Can you share the code for scrape KW from Google Autosuggest
Hey John me again. It’s in my watch later already. Thanks ahead
Nice I hope you like it
I am having issue importing nltk
Super 👍
Thank you!
there’s always a guitar in the background of code tutorial videos
sir , can I using this code for my app ?
Sure go ahead
I am new to this so How and where to install nltk?
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
@@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?
Regex :👀
please, make a video of machine learning in python 🙂
Good idea thanks 🙏