Advertisement
Guest User

JS for linkedin comment scraper

a guest
Nov 18th, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. var cleanup = function(results) {
  2.  
  3.  
  4. $.each(results, function(){
  5.  
  6. this.values[0] = this.values[0];
  7. var div = document.createElement('div');
  8. div.innerHTML = this.values[1];
  9.  
  10. this.values[1] = 'https://linkedin.com' + $('a', div).attr('href');
  11.  
  12. });
  13.  
  14. return results;
  15. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement