Python Forum
web scraping with python regular expression
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
web scraping with python regular expression
#4
(Sep-25-2017, 08:03 PM)snippsat Wrote: Added code tag,look at BBcode help.
(Sep-25-2017, 06:58 PM)dbpython2017 Wrote: my requirement is only to use regular expression to get the required data from webpage.
That's a bad requirement,regex alone is wrong tool for HTML/XML.
This funny post is a good read,i have a tutorial here.

I know that is a bad requirement but that is what homework instructions are.
So please let me know if you have an example to scrape the data with regular expressions.

(Sep-25-2017, 08:03 PM)snippsat Wrote: Added code tag,look at BBcode help.
(Sep-25-2017, 06:58 PM)dbpython2017 Wrote: my requirement is only to use regular expression to get the required data from webpage.
That's a bad requirement,regex alone is wrong tool for HTML/XML.
This funny post is a good read,i have a tutorial here.

We learned the regular expression this week.
And therefore for the homework, we need to use only regular expressions.
Reply


Messages In This Thread
RE: web scraping with python regular expression - by dbpython2017 - Sep-25-2017, 08:19 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Regular Expression rakhmadiev 6 5,439 Aug-21-2023, 01:52 PM
Last Post: Gribouillis
  BeautifulSoup : how to have a html5 attribut searched for in a regular expression ? arbiel 2 2,661 May-09-2020, 03:05 PM
Last Post: arbiel
  Extract text from tag content using regular expression Pavel_47 8 5,333 Nov-25-2019, 03:17 PM
Last Post: buran

Forum Jump:

User Panel Messages

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