loren / ustda_data

USTDA (United States Trade and Development Agency) Trade Leads

Scrapes www.ustda.gov

USTDA.gov


This is a scraper of USTDA Trade Leads data that runs on Morph. It joins two separate XML feeds into one JSON feed.

Contributors loren

Last run completed successfully .

Console output of last run

Injecting configuration and compiling...  -----> Ruby app detected -----> Compiling Ruby -----> Using Ruby version: ruby-2.2.5 -----> Installing dependencies using bundler 1.11.2  Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment  Warning: the running version of Bundler is older than the version that created the lockfile. We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.  Fetching gem metadata from https://rubygems.org/............  Fetching version metadata from https://rubygems.org/..  Fetching https://github.com/openaustralia/scraperwiki-ruby.git  Installing htmlentities 4.3.4  Installing json 1.8.3 with native extensions  Installing crass 1.0.2  Installing multi_xml 0.5.5  Installing httpclient 2.6.0.1  Installing pkg-config 1.1.7  Installing mini_portile2 2.1.0  Installing sqlite3 1.3.10 with native extensions  Using bundler 1.11.2  Installing nokogiri 1.6.8 with native extensions  Installing sqlite_magic 0.0.3  Using scraperwiki 3.0.1 from https://github.com/openaustralia/scraperwiki-ruby.git (at morph_defaults@fc50176)  Installing nokogumbo 1.4.7 with native extensions  Installing sanitize 4.0.1  Installing httparty 0.13.7  Bundle complete! 4 Gemfile dependencies, 15 gems now installed.  Gems in the groups development and test were not installed.  Bundled gems are installed into ./vendor/bundle.  Post-install message from httparty:  When you HTTParty, you must party hard!  Bundle completed (29.07s)  Cleaning up the bundler cache.  Warning: the running version of Bundler is older than the version that created the lockfile. We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.   -----> Discovering process types  Procfile declares types -> scraper Injecting scraper and running...

Data

Downloaded 179 times by loren

To download data sign in with GitHub

Download table (as CSV) Download SQLite database (23 KB) Use the API

rows 0 / 0

Statistics

Average successful run time: less than a minute

Total run time: about 2 hours

Total cpu time used: 3 minutes

Total disk space used: 63 KB

History

  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    1 record removed in the database
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    4 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    216 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    3 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    70 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    1 record added in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    1 record removed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    83 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    1 record removed, 1 record updated in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    2 records updated in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    1 record removed, 1 record updated in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    3 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    1 record added in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    1 record removed in the database
    1 page scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    4 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    3 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    2 records removed, 2 records updated in the database
    3 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    3 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    7 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    1 record added in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    1 record added in the database
    3 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    1 page scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    1 page scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
  • Auto ran revision 42f43698 and completed successfully .
    1 record removed, 3 records updated in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    1 record added in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    1 record updated in the database
    19 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
  • Auto ran revision 42f43698 and completed successfully .
    1 record removed, 1 record updated in the database
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
  • Auto ran revision 42f43698 and completed successfully .
    4 records added in the database
  • Manually ran revision 42f43698 and failed .
    nothing changed in the database
  • Manually ran revision 42f43698 and failed .
    nothing changed in the database
  • Auto ran revision 42f43698 and failed .
    4 records removed in the database
    1 page scraped
  • Auto ran revision 42f43698 and completed successfully .
    1 record added in the database
  • Auto ran revision 42f43698 and completed successfully .
    1 record removed, 1 record updated in the database
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
  • Auto ran revision 42f43698 and completed successfully .
    1 record removed, 3 records updated in the database
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
  • Auto ran revision 42f43698 and completed successfully .
    1 record added in the database
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
  • Auto ran revision 42f43698 and completed successfully .
    1 record added in the database
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
  • Auto ran revision 42f43698 and completed successfully .
    3 records added in the database
  • Auto ran revision 42f43698 and failed .
    3 records removed in the database
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
  • Auto ran revision 42f43698 and completed successfully .
    nothing changed in the database
  • Auto ran revision 52e71d78 and completed successfully .
    nothing changed in the database
  • Auto ran revision 52e71d78 and completed successfully .
    nothing changed in the database
  • Manually ran revision 52e71d78 and completed successfully .
    nothing changed in the database
  • Manually ran revision 52e71d78 and completed successfully .
    3 records added in the database
  • Manually ran revision 7b58cdcd and failed .
    nothing changed in the database
  • Manually ran revision a2bc4016 and failed .
    nothing changed in the database
  • Created on morph.io

Scraper code

Ruby

ustda_data / scraper.rb