For example,
<`span class = "time> 18:00 ~ 22:00 </span>
I'm trying to extract only the number (time) inside, but it doesn't work with my code.
My code is as follows.
job_time = job.find('td', {"class" : "data"}).find('span',
{"class" : "time"}).text
It doesn't work with .text or .str, but is there any other way?
python
job_time = re.sub(r'[^0-9]', '', job_time)
573 PHP ssh2_scp_send fails to send files as intended
593 Uncaught (inpromise) Error on Electron: An object could not be cloned
592 GDB gets version error when attempting to debug with the Presense SDK (IDE)
865 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
© 2024 OneMinuteCode. All rights reserved.