Hello,
I'm trying to scrape a webpage, and have imported html code as one variable and am trying to extract my data using string functions.
To parse with different substrings that vary only in the middle (hence the asterisk below) I want to do something like this:
split htmlcode, p(`"<div class="ysf-"'*"<a"*">" [2nd string following data])
However, I don't think including the asterisk is acceptable use for the split command.
Can anyone recommend another way to do this?
Thank you!
-Reese
Related Posts with Web scraping / string parsing help
Panel subgraph colourI cannot change the colour of the titles of subgraphs in my panel data graph. I have created a MWE f…
sleep command - milliseconds upper limitI would like to pause a stata command for 24 hours due to some externally imposed restriction on cod…
Factor AnalysisHow do I extract a communalities table (refer to picture-1), in stata when I perform factor analysis…
What is the minimun number of observations per response needed for a regression?* *I was running a regression and I obtained a very counter intuitive result (very high coefficient wit…
What is the minimun number of observations per answer that I need?I was running a regression and I obtained a very counter intuitive result (very high coefficient wit…
Subscribe to:
Post Comments (Atom)
0 Response to Web scraping / string parsing help
Post a Comment