Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shmygol/ad-scraper
Fetch context ads
https://github.com/shmygol/ad-scraper
Last synced: about 2 months ago
JSON representation
Fetch context ads
- Host: GitHub
- URL: https://github.com/shmygol/ad-scraper
- Owner: shmygol
- Created: 2015-07-09T14:23:48.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-07-10T18:15:55.000Z (over 9 years ago)
- Last Synced: 2023-03-12T06:43:42.801Z (almost 2 years ago)
- Size: 129 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ad-scraper
Uses Nokogiri to fetch context ads from Google, Bing and Yahoo platforms by the given list of keywords for marketing analysis. Inspired by https://github.com/caser/google-ad-scraper## Code Example
```
require 'ad_scraper'
time = Time.new
AdScraper::get_parsed_pages(query_list.split(','), ['yahoo', 'google', 'bing']).each do |page|
puts "==== #{page.platform.upcase} = #{page.query.upcase} ===="
page.ads.each do |ad|
puts
puts 'HEADLINE: ' + ad[:headline].upcase
puts
puts ad[:node].to_s
end
end
```