[Tutor] Download audios & videos using web scraping from news website or facebook

2019-06-14 Thread Sijin John
Hello Sir/Mam, I am trying to Download audios & videos using web scraping from news website (eg: https://www.bbc.com/news/video_and_audio/headlines) or Facebook & I could't. So in real scenario is it really possible to download audios/videos using python code ? Thanks & Regards _

Re: [Tutor] Download audios & videos using web scraping from news website or facebook

2019-06-14 Thread Alan Gauld via Tutor
On 14/06/2019 07:35, Sijin John wrote: > I am trying to Download audios & videos using web scraping from news website > (eg: https://www.bbc.com/news/video_and_audio/headlines) or Facebook & I > could't. > So in real scenario is it really possible to download audios/videos using > python code ?

Re: [Tutor] Download audios & videos using web scraping from news website or facebook

2019-06-14 Thread Steven D'Aprano
On Fri, Jun 14, 2019 at 11:35:53AM +0500, Sijin John wrote: > I am trying to Download audios & videos using web scraping from news > website (eg: https://www.bbc.com/news/video_and_audio/headlines) or > Facebook & I could't. So in real scenario is it really possible to > download audios/videos

[Tutor] os.is_file and os.is_dir missing from CPython 3.8.0b?

2019-06-14 Thread Tom Hale
I'm trying to use os.is_dir, but I'm not finding it or os.is_file. What am I missing here? Python 3.8.0b1 (tags/v3.8.0b1:3b5deb01, Jun 13 2019, 22:28:20) [GCC 8.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. :>>> import os :>>> print(os.__dict__.keys()) dict

Re: [Tutor] os.is_file and os.is_dir missing from CPython 3.8.0b?

2019-06-14 Thread Alan Gauld via Tutor
On 14/06/2019 15:53, Tom Hale wrote: > I'm trying to use os.is_dir, but I'm not finding it or os.is_file. I've never heard of these functions, but I'm still on v3.6, never having found a reason to upgrade. So I assume... > Python 3.8.0b1 (tags/v3.8.0b1:3b5deb01, Jun 13 2019, 22:28:20) ...these

Re: [Tutor] os.is_file and os.is_dir missing from CPython 3.8.0b?

2019-06-14 Thread Peter Otten
Tom Hale wrote: > I'm trying to use os.is_dir, but I'm not finding it or os.is_file. > > What am I missing here? Scroll up a bit in the documentation: https://docs.python.org/3.8/library/os.html#os.DirEntry Both is_file() and is_dir() are methods of the DirEntry object. See also https://docs

Re: [Tutor] Download audios & videos using web scraping from news website or facebook

2019-06-14 Thread Mats Wichmann
On 6/14/19 12:35 AM, Sijin John wrote: > Hello Sir/Mam, > I am trying to Download audios & videos using web scraping from news website > (eg: https://www.bbc.com/news/video_and_audio/headlines) or Facebook & I > could't. So in real scenario is it really possible to download audios/videos > usin

[Tutor] deleting elements out of a list.

2019-06-14 Thread mhysnm1964
All, I am not sure how to tackle this issue. I am using Windows 10 and Python 3.6 from Activestate. I have a list of x number of elements. Some of the elements are have similar words in them. For example: Dog food Pal Dog Food Pal qx1323 Cat food kitty Absolute cleaning inv123 Abs

[Tutor] Differences between while and for

2019-06-14 Thread mhysnm1964
All, In C, Perl and other languages. While only uses a conditional statement and for uses an iteration. In python while and for seems to be the same and I cannot see the difference. Python does not have an until (do while) where the test is done at the end of the loop. Permitting a once through