How to get HTML row element while also conditionally search for another value in row

I have a script to get data from a site but want more control over it. I have never really used Javascript before; I found the script and am working to make it better in Google Scripts. Right now I go into the row tag and grab the value I need but, I can only grab the first row. There is a date value in the row also. I want to have this included when trying to pull in the data. Is there a way I can check additional items in the row? Right now I have the below.

    var url = "https://www.sec.gov/cgi-bin/browse-edgar?CIK="+company+"&type="+filetype+"&owner=exclude&action=getcompany&Find=Search";
     var result = UrlFetchApp.fetch(url).getContentText();
     var regEx = new RegExp("\<a href=.(\/cgi-bin.+type=v)");

the above is what I have now. The regEx is getting the link I need; this is the item I would like more control over. I was thinking to pull out all rows and as text and match the date, or better yet have a condition to filter for where date is < or > a date provided as a parameter.

133 thoughts on “How to get HTML row element while also conditionally search for another value in row”

  1. [url=https://zithrozpack.com/]azithromycin zithromax[/url] [url=https://levitradd.com/]vardenafil brand name[/url] [url=https://doctorkiva.com/]online cheap viagra[/url] [url=https://fildenahim.com/]vidalista 60[/url] [url=https://sansordonnancemd.com/]levitra gГ©nГ©rique 20 mg[/url] http://doctorhims.com viagra without dr prescription

    Reply

Leave a Comment