Website scraping using jquery and ajax

前端 未结 6 1757
孤独总比滥情好
孤独总比滥情好 2020-12-24 09:46

I want to be able to manipulate the html of a given url. Something like html scraping. I know this can be done using curl or some scraping library.But i would like to know i

6条回答
  •  滥情空心
    2020-12-24 10:27

    I would like to point out that there are situations where it is perfectly acceptable to use jQuery to scrape screens across domains. Windows Sidebar gadgets run in a 'Local Machine Zone' that allows cross domain scripting.

    And jQuery does have the ability to apply selectors to retreived html content. You just need to add the selector to a load() method's url parameter after a space.

    The example gadget code below checks this page every hour and reports the total number of page views.

    
    
        
        
    
    
    
    Question Viewed:
    

提交回复
热议问题