Advertisement
sreejith2904

JS code for scrapping

Jun 23rd, 2017
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.  
  3. var all = $(".refineItem").map(function() {
  4.     return this.innerHTML;
  5. }).get();
  6.  
  7.  
  8. foo = []
  9.  
  10. # Do string formatting on each label -> may be a regular expression replace
  11. # to replace labels - <label for="AU_21"> and </label> from each item
  12. # like this
  13.  
  14. $(all).each(function (index, value) {
  15.   foo.push(value.replace("</label>"));
  16. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement