Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Which format is the right one for "connect.sid"? #3

Closed
m-mattia-m opened this issue Apr 2, 2023 · 4 comments
Closed

Which format is the right one for "connect.sid"? #3

m-mattia-m opened this issue Apr 2, 2023 · 4 comments

Comments

@m-mattia-m
Copy link

Does the "connect.sid" have to be decoded or encoded? Because currently no articles are shown to me with both possibilities, which is probably due to the fact that no new articles have appeared in the meantime.

@maetthu
Copy link
Owner

maetthu commented Apr 2, 2023

Just 1:1 as it's stored in the browser, not urldecoded - REPUBLIK_FEEDER_COOKIE="s%3Asomething" in my case.

Screenshot_20230402_110829

Although if it didn't work either way, maybe the one you tried expired? Mine stopped working when I changed my email address and had to extract the new one again.

@m-mattia-m
Copy link
Author

Ok thanks. I have now re-registered and taken result from the value, however, still no article is displayed to me. Which items should all be spent? Only those that were added after the API was deployed or also those from last week?

@maetthu
Copy link
Owner

maetthu commented Apr 2, 2023

It just returns the 20 most recent articles returned from the Republik API, it's not dependent on the startup time or when the last article was published.

e.g. started with

$ REPUBLIK_FEEDER_COOKIE="s%3Asomething" ./republik-feeder :8080

the URL http://localhost:8080/articles should return a list like

$ curl http://localhost:8080/articles
<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Republik - RSS Feed</title>
    <link>https://www.republik.ch</link>
    <description>Republik - RSS Feed</description>
    <managingEditor>[email protected] (Republik)</managingEditor>
    <pubDate>Sun, 02 Apr 2023 11:35:13 +0200</pubDate>
    <item>
      <title>[Wochenend-Newsletter] Schweizer Klimaseniorinnen in Strassburg und der Wochenkommentar</title>
      <link>https://www.republik.ch/URL-TO-ARTICLE</link>
      <description></description>
      <guid>...</guid>
      <pubDate>Sat, 01 Apr 2023 03:00:00 +0000</pubDate>
    </item>
    <item>
      <title>Frau Stern reist nach Strassburg</title>
      <link>https://www.republik.ch/URL-TO-ARTICLE</link>
      <description>Den eigenen Staat verklagen und siebzehn Richtern Rede und Antwort stehen: Das machen die Schweizer Klima­seniorinnen vor dem Europäischen Gerichtshof für Menschen­rechte. Unter den Augen der Welt­öffentlichkeit.</description>
      <guid>...</guid>
      <pubDate>Sat, 01 Apr 2023 02:50:00 +0000</pubDate>
    </item>
    [...]
  </channel>
</rss>

@m-mattia-m
Copy link
Author

Interesting, with me only the following is displayed?

<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
    <channel>
        <title>Republik - RSS Feed</title>
        <link>https://www.republik.ch</link>
        <description>Republik - RSS Feed</description>
        <managingEditor>[email protected] (Republik)</managingEditor>
        <pubDate>Sun, 02 Apr 2023 09:35:44 +0000</pubDate>
    </channel>
</rss>

The problem was that I didn't have a paid profile yet. Now it works.

@maetthu maetthu pinned this issue Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants