Coder Social home page Coder Social logo

Auto Deliver is not working. about kindleear HOT 9 CLOSED

ok97465 avatar ok97465 commented on July 28, 2024
Auto Deliver is not working.

from kindleear.

Comments (9)

cdhigh avatar cdhigh commented on July 28, 2024 1
  1. go to GAE cron console to confirm that the APP ENGINE CRON job has been deployed successfully.
  2. go to GAE logs console to confirm that there are logs for the automatic execution of /deliver, or to check if exists some exception records.

from kindleear.

cdhigh avatar cdhigh commented on July 28, 2024 1

Found the bug.
This bug doesn't exist in the Docker deployment, I didn't pay attention to it and assumed it was due to your configuration or other issues.
The code has been updated. Please redeploy and test again.

from kindleear.

cdhigh avatar cdhigh commented on July 28, 2024 1

Most of these RSS feeds have their published/updated times more than a week ago, so you need to set Oldest_articles to Unlimit in order to push these RSS feeds.

Some of them can be pushed.
I tested them with auto-push, and successful.

Except http://feeds2.feedburner.com/rss_outsider_dev
This RSS title contains single quotes, which caused the code generation to fail.

The code updated.

Please confirm your version is updated to 3.0.7 before testing.

from kindleear.

ok97465 avatar ok97465 commented on July 28, 2024

Thank you for your reply.
I think that that the APP ENGINE CRON job has been deployed successfully.

스크린샷 2024-05-23 오후 9 54 44

But I can't interpret GAE log. Can you help me?

스크린샷 2024-05-23 오후 9 55 09

from kindleear.

cdhigh avatar cdhigh commented on July 28, 2024

cron works all.

  1. Show all logs in here.
  2. Try to set 'Oldest article' to 'No limit' or '7 Days' for testing.
  3. Which RSS did you use for?

from kindleear.

Steven630 avatar Steven630 commented on July 28, 2024

I can confirm that auto-delivery isn't working.

大佬,更新了最新版本,今天还是没有自动投递。

from kindleear.

nietulong avatar nietulong commented on July 28, 2024

downloaded-logs-20240524-085515.csv
downloaded-logs-20240524-085139.csv
我的也是自动推送老是不行,我已经更新到最新版本啦

from kindleear.

ok97465 avatar ok97465 commented on July 28, 2024

I updated kindle ears. But It was not working.

import re

from calibre.web.feeds.recipes import BasicNewsRecipe

# Comment out sections you are not interested in
sections = [
    ("정치", "politics"),
    ("사회", "national"),
    ("경제", "economy"),
    ("국제", "international"),
    ("사설칼럼", "editorials"),
    ("의학과학", "science"),
    ("문화연예", "culture"),
    ("스포츠", "sports"),
    ("사람속으로", "inmul")
    # Following sections are marked as marked optional
    # as default. Uncomment to enable.
    # , (u'건강', 'health')
    # , (u'레저', 'leisure')
    # , (u'도서', 'book')
    # , (u'공연', 'show')
    # , (u'여성', 'woman')
    # , (u'여행', 'travel')
    # , (u'생활정보', 'lifeinfo')
]


class Donga(BasicNewsRecipe):
    language = "ko"
    title = "동아일보"
    description = "동아일보 기사"
    __author__ = "Minsik Cho"
    ignore_duplicate_articles = {"title", "url"}
    compress_news_images = True
    no_stylesheets = True
    oldest_article = 2
    encoding = "utf-8"

    # RSS Feed in syntax:
    # https://rss.donga.com/[sections].xml
    feeds = [(title, "https://rss.donga.com/" + section + ".xml") for (title, section) in sections]

    # Remove logo and print buttons
    remove_tags = [
        dict(name="div", attrs={"class": "popHeaderWrap"}),
        dict(name="div", attrs={"class": "etc"}),
    ]

    def print_version(self, url):
        # Original url in syntax:
        # https://www.donga.com/news/[sections]/article/all/[date]/[gid]/1
        # Return print version url with syntax:
        # https://www.donga.com/news/View?gid=[gid]&date=[date]
        reobject = re.search("(?<=/all/)([0-9]*)/([0-9]*)", url)
        date = reobject.group(1)
        gid = reobject.group(2)

        return "https://www.donga.com/news/View?gid=" + gid + "&date=" + date

from kindleear.

ok97465 avatar ok97465 commented on July 28, 2024

Thank you for your efforts.
The auto deliver is working now.

from kindleear.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.