Skip to content

Commit

Permalink
git: Merge branch 'develop' of https://github.com/nooblag/pddgnimi in…
Browse files Browse the repository at this point in the history
…to develop
  • Loading branch information
nooblag committed Jan 10, 2022
2 parents e84f9a9 + 2720aff commit 7cda174
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 24 deletions.
11 changes: 0 additions & 11 deletions emailSettings.py

This file was deleted.

21 changes: 8 additions & 13 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@

### "Put DuckDuckGo News In My Inbox"

This thing should scrape news articles from [DuckDuckGo](https://duckduckgo.com/) for a search query and send the output to an email. It's intended to be invoked as a cronjob or something so as to get hits on a news topic once a day.
This thing should scrape news articles from [DuckDuckGo](https://duckduckgo.com/) for a search query in Australia and send the output to an email. It's intended to be invoked as a cronjob or something so as to get hits on a news topic once a day.

For example, here's an e-mail alert for "celebrity news":

![Screenshot from 2022-01-10 22-07-24](https://user-images.githubusercontent.com/1122344/148756507-2765c8dc-13a4-48d7-9c5f-8d66c7e093f9.png)


**Under development!**

Expand Down Expand Up @@ -35,21 +40,11 @@ wget https://github.com/mozilla/geckodriver/releases/download/v0.30.0/geckodrive
sudo tar -xf geckodriver-v0.30.0-linux64.tar.gz --directory /usr/bin/
```

### Mail Server Settings

Open the `emailSettings.py` settings file and edit it to specify the SMTP server to use to send email alerts with.

Should be something like:

```python
mailserverHost = 'smtp.somewhere.com'
mailserverPort = '465'
mailserverUser = '[email protected]'
mailserverPass = 'PasswordGoesHere'
```

## Usage

**pddgnimi** is intended to be invoked from the command line, as follows:

```
python3 pddgnimi.py "foo bar" [email protected]
```
Expand Down

0 comments on commit 7cda174

Please sign in to comment.