No video

Python Automation Series #7 : How to scrap newspapers and retrieve data using newspaper module ?

  Рет қаралды 10,497

Bek Brace

Bek Brace

Күн бұрын

Пікірлер: 26
@lusinedavtyan872
@lusinedavtyan872 3 жыл бұрын
Thank you ! Best Python video so far. Will watch all your tutorials!
@BekBrace
@BekBrace 3 жыл бұрын
Hello Lusine, thanks a lot for your kind words! 🙏 - means a lot to me🙂
@funnyvideos-zl9pu
@funnyvideos-zl9pu 3 жыл бұрын
Is there any way to scrap data from site need to log in but its block any user make any scrap with selenium so i need to make scrap from my normal browser without need to log in every time
@ronaldoleoni7170
@ronaldoleoni7170 Жыл бұрын
How can i do NLP of links that i already catch and stored as a list with other methods?
@BekBrace
@BekBrace Жыл бұрын
Not sure if if I understand
@ronaldoleoni7170
@ronaldoleoni7170 Жыл бұрын
@@BekBrace I'm doing a web scraping of google scholar. I manage to catch many links to articles, but when I go to use the newspaper module, I realize that I can only catch articles from the web with it. I can enter with my data already collected.
@brandonma4539
@brandonma4539 2 жыл бұрын
Hi, I see that you've used the Download function, however, where is it downloaded exactly? I cannot find the file after running the code
@BekBrace
@BekBrace 2 жыл бұрын
Hey Brandon. It's not downloaded on a physical location on your hard drive, this is just a method that is necessary to download the article as a stage to parse it and then print it - another example from Lucas' GitHub repo : >>> from newspaper import Article >>> url = 'www.bbc.co.uk/zhongwen/simp/chinese_news/2012/12/121210_hongkong_politics.shtml' >>> a = Article(url, language='zh') # Chinese >>> a.download() >>> a.parse() >>> print(a.text[:150]) 香港行政长官梁振英在各方压力下就其大宅的违章建 筑(僭建)问题到立法会接受质询,并向香港民众道歉。
@Programmingwithranawaqas
@Programmingwithranawaqas 2 жыл бұрын
how can i crawl mutliple URLS?
@metakokalj1207
@metakokalj1207 Жыл бұрын
Hello. Do you maybe know the way to scrape multiple page comments (like 450 comments) from a newspaper article? Thank you so much for your help.
@BekBrace
@BekBrace Жыл бұрын
Thank you. I don't have a ready answer for this question, but if i happen to find a way I'll let you know
@karanahuja7467
@karanahuja7467 Жыл бұрын
how to filter certain keywords and not include them?
@solomon9846
@solomon9846 3 жыл бұрын
Hello. Thank you for your explaining. May I know how to scrape for multiple URLs?
@BekBrace
@BekBrace 3 жыл бұрын
Hello Solomon , thank you for watching and for your question. I have added a link in the description for a piece of code that can help you scraping multiple URLS - Tell me later if it went Okay
@singasik
@singasik 3 жыл бұрын
@@BekBrace Hey I have tried your link but it doesn't seem to work. I am not sure why it didn't work. I have a feeling I am doing it wrongly kzfaq.info/get/bejne/b7GKqrVzzJqRgGQ.html I was trying to do a chatbot according to the link above, and I tried to combine with the link you provided. I required help from your video as the link above didn't show how to download articles into text from multiple articles. If you can show/ explain to me how to do so with regards to the example above, I would appreciate it greatly. Thank you for reading till here.
@BrandonCastillo-eo1or
@BrandonCastillo-eo1or 2 жыл бұрын
Thank you very much. It was very useful 👍🏽
@BekBrace
@BekBrace 2 жыл бұрын
Great to hear my friend
@supercompilations7211
@supercompilations7211 3 жыл бұрын
Hii mr thanks for your tuto I have Q there is any way to build wordpress plugin using python ??
@BekBrace
@BekBrace 3 жыл бұрын
Thank you friend! Honestly I don’t know, but I happen to find an answer for your question, I’ll let you know - peace ✌️
@user-gp7py5fe1m
@user-gp7py5fe1m 3 жыл бұрын
When I tried "pip install newspaper" I got this: "ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output."
@BekBrace
@BekBrace 3 жыл бұрын
Татьяна Тренихина check your python version using : python -version , please ? ; and if it’s not python version 3 then consider upgrading it. If it is python 3 + , then try the following command on your terminal : pip install -U setuptools ( this is just a permission problem ) and let me know how it went.
@user-gp7py5fe1m
@user-gp7py5fe1m 3 жыл бұрын
@@BekBrace Now it works! It was my mistake. I first used pip install. The program works correctly with "pip3 install newspaper3k". Thanks!
@prakashkafle454
@prakashkafle454 3 жыл бұрын
Not work for nepali news properly .
@BekBrace
@BekBrace 3 жыл бұрын
Do you get an error ?
@prakashkafle454
@prakashkafle454 3 жыл бұрын
@@BekBrace yup
Following LINKS Automatically with Scrapy CrawlSpider
14:33
John Watson Rooney
Рет қаралды 32 М.
小丑和奶奶被吓到了#小丑#家庭#搞笑
00:15
家庭搞笑日记
Рет қаралды 8 МЛН
Алексей Щербаков разнес ВДВшников
00:47
Look at two different videos 😁 @karina-kola
00:11
Andrey Grechka
Рет қаралды 13 МЛН
Advanced Web Scraping in Puppeteer: Scraping a Bookstore!
21:59
Josh tried coding
Рет қаралды 30 М.
BeautifulSoup + Requests | Web Scraping in Python
6:58
Alex The Analyst
Рет қаралды 124 М.
Web Scraping to CSV | Multiple Pages Scraping with BeautifulSoup
29:06
Hacking Websites with SQL Injection - Computerphile
8:59
Computerphile
Рет қаралды 2,4 МЛН
Chunking Strategies in RAG: Optimising Data for Advanced AI Responses
14:02
Unlimited Historical news scraping in Python
18:10
Kelvin
Рет қаралды 1,1 М.
How to make advanced image recognition bots using python
15:01
Kian Brose
Рет қаралды 1,3 МЛН
Scrape blog posts with Python
15:18
John Watson Rooney
Рет қаралды 7 М.
Python Automation with PyAutoGUI | Full Course With Projects!
36:11
Code of the Future
Рет қаралды 170 М.
小丑和奶奶被吓到了#小丑#家庭#搞笑
00:15
家庭搞笑日记
Рет қаралды 8 МЛН