Skip to content
Advertisement

Tag: python-2.7

How to check the windows path matches with partial Linux path string

I am trying to check what files that are present in my full_list_files are also present in required_list. The thing here is they are not exactly equal to one other , but macthes with filename and last sub directory. Example : ‘C:UsersDocumentsUpdatedBuildOutputMApplication_1.bin’ matches with “M/Application_1.bin” except the slashes are different. So I am trying to make both uniform by using

installing pip on python2.7.5 and the old version issue

I want to make some change on a code which has been developed with python2.7.5 so I should use Python 2.7.5. But when I’m installing pip on python2.7.5, face this error. I have downloaded get-pip.py and ran it through cmd here is the error: DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your

Beautiful Soup and requests problem it doesn’t show any text output

I am using beautiful soup and requests to print full text of the article of this wedsite https://www.vanityfair.com/style/society/2014/06/monica-lewinsky-humiliation-culture This is my code: My code run without any error but it does’t show any text in output plz help me find my error Answer What happens? You try to find_all() div tags with two classes that do not exists, so match

Advertisement