Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: non-finite value error when cleaning data
Post: non-finite value error when cleaning data

hi,after scraping data i tried to clean it and i got the following error message Quote:ValueError: Cannot convert non-finite values (NA or inf) to integer when i searched i found this error is raised...
yokaso Web Scraping & Web Development 0 3,298 Dec-17-2019, 07:26 AM
    Thread: can't remove element from a list
Post: RE: can't remove element from a list

thank you for your response, and it help to get see new idea how to solve the problem. maybe i didn't explain you well and i am sorry. when i told you 10 characters it was just to give you an example...
yokaso General Coding Help 6 2,858 Nov-06-2019, 03:11 PM
    Thread: can't remove element from a list
Post: RE: can't remove element from a list

i really confused, in my code i want to get 10 first element of a string(in this code it's "expression") and affect them to first_case_num , after that i will remove from first_case_num any element wh...
yokaso General Coding Help 6 2,858 Nov-06-2019, 11:53 AM
    Thread: can't remove element from a list
Post: RE: can't remove element from a list

i updated my code , that you can see . and sorry
yokaso General Coding Help 6 2,858 Nov-06-2019, 10:45 AM
    Thread: can't remove element from a list
Post: can't remove element from a list

i have a list and i want to remove all non digit element from it,but got some problem. there is my code , can you help me: match = re.compile(r'ROL N°.[0-9][0-9].') case_title = re.sub(match,'',ex...
yokaso General Coding Help 6 2,858 Nov-06-2019, 10:22 AM
    Thread: regular expression and sub
Post: RE: regular expression and sub

thank you, i thought that's took just 2 argument. and i will change the match object.
yokaso General Coding Help 6 4,145 Nov-03-2019, 11:45 AM
    Thread: regular expression and sub
Post: RE: regular expression and sub

it's done and sorry
yokaso General Coding Help 6 4,145 Nov-03-2019, 11:23 AM
    Thread: regular expression and sub
Post: RE: regular expression and sub

sorry i forgot ,and i just updated the post
yokaso General Coding Help 6 4,145 Nov-03-2019, 11:18 AM
    Thread: regular expression and sub
Post: regular expression and sub

i would like to find a specific string and delete it from on initial string. in my case i want to find the word "LOT N° 1" and delete if from the PHRASE import re expression ='LOT N° 1 that''s the...
yokaso General Coding Help 6 4,145 Nov-03-2019, 10:43 AM
    Thread: how to iterate through a divs tag
Post: how to iterate through a divs tag

Hi i would like to get an idea on how can i iterate through DIVs in code to get some data from each DIV. my example is an amazon page results and would like to get some information from each item an s...
yokaso Web Scraping & Web Development 3 3,086 Oct-24-2019, 07:30 AM
    Thread: local variable troubles
Post: RE: local variable troubles

but i wonder why in the original code (in link), it work perfectly ????
yokaso General Coding Help 4 3,160 Oct-20-2019, 05:03 PM
    Thread: local variable troubles
Post: local variable troubles

Hi,i was following a tutorial and typing my own code with jupyter notebook. and my problem is the code that i wrote has an error and the original(from the tutorial) code work well. i checked and re-ch...
yokaso General Coding Help 4 3,160 Oct-20-2019, 02:16 PM
    Thread: spliting html code with br tag
Post: RE: spliting html code with br tag

thank you for ur effort but until now the code given don't split the text of the website
yokaso Web Scraping & Web Development 11 15,710 Aug-07-2019, 07:23 AM
    Thread: spliting html code with br tag
Post: RE: spliting html code with br tag

import requests from bs4 import BeautifulSoup url = 'https://www.ouedkniss.com/telephones' response = requests.get(url) soup = BeautifulSoup(response.content, 'lxml') id_find = soup.find('div', id="...
yokaso Web Scraping & Web Development 11 15,710 Aug-06-2019, 12:39 PM
    Thread: spliting html code with br tag
Post: RE: spliting html code with br tag

but this code don't split the content ????
yokaso Web Scraping & Web Development 11 15,710 Aug-06-2019, 11:49 AM
    Thread: spliting html code with br tag
Post: RE: spliting html code with br tag

thank you,and ur right . when i try ur code of html it work well and when i try the website it got errors. i don't know why but i want to know. i will send you the website maybe you can enlighten me ...
yokaso Web Scraping & Web Development 11 15,710 Aug-06-2019, 08:01 AM
    Thread: spliting html code with br tag
Post: RE: spliting html code with br tag

i tried your code but it don't give me the same result as yours. Quote:IndexError Traceback (most recent call last) <ipython-input-15-6f66d1a27188> in <module&g...
yokaso Web Scraping & Web Development 11 15,710 Aug-05-2019, 07:14 AM
    Thread: spliting html code with br tag
Post: spliting html code with br tag

Hi,i am new in python scraping and i apologize for any mistake, i would like to get a text from html code and the target text is between <br>, i tried the following code but it give me the whol...
yokaso Web Scraping & Web Development 11 15,710 Aug-04-2019, 07:04 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020