Skip to content

Commit

Permalink
Merge pull request #92 from kevthehermit/fix/scrape-url
Browse files Browse the repository at this point in the history
Fixed scrape_uri for stackoverflow
  • Loading branch information
Plazmaz authored Sep 26, 2019
2 parents 7219e5c + c598dc3 commit 9cfa32d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions inputs/stackexchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ def recent_pastes(conf, input_history):
# Force type to string else it breaks ES Index mappings
question_data['pasteid'] = str(question['question_id'])
question_data['pastesite'] = site
# Set the raw uri to avoid breaking other things. Defaults to empty if not found
question_data['scrape_url'] = question.get('link', '')
# Get the author and then trim the data we store.
question_data['username'] = question['owner']['display_name']
del question_data['owner']
Expand Down

0 comments on commit 9cfa32d

Please sign in to comment.