Text of the article…
wanted
wanted content
unwanted content
wanted
wanted content
wanted
unwanted content
wanted content
# Adding a feed 1. To add a feed, copy the URL of its RSS or Atom file (for instance, the Framablog RSS URL is `https://framablog.org/feed/`). FreshRSS is able to automatically find the address of the feed for websites that are declaring it in a standard way. 2. In FreshRSS, click the "**+**" button next to “Subscriptions management”. 3. Paste the URL in the “Feed URL” field. 4. (optional): You can select the category for your feed. By default, it will be in “Uncategorized”. 5. (optional): If the subscription requires credentials, you can enter them in the "HTTP username" and "HTTP password" fields. 6. (optional): You can set a timeout for the feed request. 7. (optional): You can choose to ignore SSL certificate errors (such as with self-signed certificates) by setting "Verify SSL security" to "No". This is not recommended, and it is better to either add the root certificate to the FreshRSS server or to fix the SSL certificate problems on the feed hosting server. ## Subscription management The "Subscription management" submenu allows categories and feeds to be configured. Feeds can be moved between categories by drag-and-drop, or in the individual feed’s settings. Hovering over a feed/category will cause a gear icon to appear. Clicking the icon will bring up the settings for that item. ## Category Settings ### Information * **Title:** Name of category * **Display position:** Defines the order of categories. Lower numbers get priority, non-numbered items come last, and equally numbered items will sort by alphabetical order. ### Archiving If “Purge Policy” has “By default” selected, then the [default purge policy](./05_Configuration.md#archiving) is used and the other options are not displayed. Category options will override the default policy, but they will not override feed-specific options. See [Archiving](./05_Configuration.md#archiving) for important details on when and how purging actually happens (it is not applied on every refresh, and it is based on the discovery date of articles, not their published date). ## Feed Settings These fields will be auto-filled when adding a feed, but they can be modified later. **Visibility** will define if the feed is displayed in the main feed, only in specific categories, or not at all. ### Archival This section will let you override the default settings for feed archiving and update frequency. When “By default” is selected here, the feed uses its category’s purge policy, falling back to the [global default](./05_Configuration.md#archiving) if the category also uses the default. ### Login Some feeds require a username/password submitted over HTTP. These usually aren’t needed for feeds. ### Advanced #### Retrieve a truncated feed from within FreshRSS This question comes up regularly, so we’ll try to clarify how one can retrieve a truncated RSS feed with FreshRSS. Please note that the process is absolutely not user friendly, but it works. :) Please be aware that this way you’ll generate much more traffic to the originating sites, and they might block you accordingly. FreshRSS performance is also negatively affected, because you’ll have to fetch the full article content one by one. So it’s a feature to use sparingly! The options are in the “Content retrieval” and “Advanced” sections of the feed settings. The main one, “Article CSS selector on original website”, is a [CSS selector](https://developer.mozilla.org/docs/Learn_web_development/Core/Styling_basics/Basic_selectors) matching the part of the article’s web page to retrieve. ##### Finding the CSS selector 1. Open one of the truncated articles in your browser. 2. Look at the source of the page (for instance with “View Page Source”). FreshRSS does not run JavaScript, so content added to the page by JavaScript is not available to FreshRSS. 3. Find the HTML element that contains the text of the article, and nothing else from the page. If the element is too large (for instance one that also contains the menu, the comments, or the whole page), all of that will be retrieved as well. 4. Write a CSS selector for this element, using its `id` or `class` attributes: `#main` matches `id="main"`, and `.entry-content` matches `class="entry-content"` (do not forget the leading `#` or `.`). Use an id or class that all the articles of the website have in common, not one that is specific to a single article (such as `#post-1234`). 5. Write the selector in “Article CSS selector on original website”, and click the preview button next to the field to check the result. The preview uses one of the articles already in the feed, and also applies “CSS selector of the elements to remove”. 6. Submit the form. For instance, with the following web page: ```html
Text of the article…
wanted content
unwanted content
wanted content
unwanted content
wanted content