<s> import os <EOL> from cabu import Cabu <EOL> from flask import jsonify <EOL> os . environ [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> app = Cabu ( __name__ ) <EOL> @ app . route ( '<STR_LIT>' ) <EOL> def gizmodo_last_articles ( ) : <EOL> app . webdriver . get ( '<STR_LIT>' ) <EOL> articles_links = [ <EOL> i . get_attribute ( '<STR_LIT>' ) <EOL> for i in app . webdriver . find_elements_by_css_selector ( '<STR_LIT>' ) <EOL> ] <EOL> return jsonify ( { '<STR_LIT:message>' : '<STR_LIT>' , '<STR_LIT>' : articles_links } ) <EOL> @ app . route ( '<STR_LIT>' ) <EOL> def test_headers ( ) : <EOL> app . webdriver . get ( '<STR_LIT>' ) <EOL> return jsonify ( { '<STR_LIT:message>' : '<STR_LIT>' , '<STR_LIT:status>' : '<STR_LIT>' } ) <EOL> app . run ( host = '<STR_LIT>' , port = <NUM_LIT> , debug = True ) </s>
