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
Code for counting ID within a variableHi all, I have a variable inc_chng which calculates the changes in the income variable from year to…
npss: a STATA module to estimate nonparametric heteroskedastic state space modelsnpss: a STATA module to estimate nonparametric heteroskedastic state space models is now available i…
combining "by" and loopsDear stata members, Is there any way to run loops over OBSERVATIONS, not variables, together with …
Bug saving funnel plotsHello When I try to open a saved funnel plot generated by Code: meta funnelplot, contours(1 5 10…
Multinomial Logistic Regression Taking hour+Hello, I'm running a fairly simple multinomial logistic regression with a sort of categorical/ordina…
Subscribe to:
Post Comments (Atom)
0 Response to Web scraping / string parsing help
Post a Comment