πŸ“… Twice-Daily Auto-Post Schedule

πŸ“… Twice-Daily Auto-Post Schedule

This guide sets up automated research news posting twice per day to your blog.

⏰ Schedule Options

Option A: Windows Task Scheduler (Local)

Run the Python script automatically every 12 hours on your Windows machine.

Setup Steps:

  1. Open Task Scheduler:
    • Press Win + R β†’ type taskschd.msc β†’ Press Enter
  2. Create New Task:
    • Right-click Task Scheduler Library β†’ Create Task
    • Name: Research News Auto-Post
    • Check: βœ… Run with highest privileges
  3. Set Triggers (2 triggers for twice daily):

    Trigger 1 (Morning):

    • Event: Begin a task
    • Type: On a schedule
    • Frequency: Daily
    • Start time: 9:00 AM
    • Repeat every: 1 day

    Trigger 2 (Evening):

    • Event: Begin a task
    • Type: On a schedule
    • Frequency: Daily
    • Start time: 9:00 PM
    • Repeat every: 1 day
  4. Set Action:
    • Program: C:\Users\saifa\AppData\Local\Programs\Python\Python313\python.exe
    • Arguments: .github/scripts/fetch_research_news.py
    • Start in: C:\Users\saifa\SaifaldeenALKADHIM.github.io
  5. Set Conditions:
    • βœ… Wake computer to run task
    • βœ… Run only if user is logged in

Option B: GitHub Actions (Cloud - After Token Update)

Once your token has workflow scope, use twice-daily cron schedule:

on:
  schedule:
    # 9 AM UTC (Morning)
    - cron: '0 9 * * *'
    # 9 PM UTC (Evening)
    - cron: '0 21 * * *'

This runs automatically without your computer being on.


πŸ“Š What Happens Each Run

Per Each Execution:

  • βœ… Fetches 7 real arXiv papers
  • βœ… Creates blog posts with authors and abstracts
  • βœ… Auto-commits to git
  • βœ… Pushes to GitHub
  • βœ… GitHub Pages rebuilds

Per Day:

  • πŸ•˜ Morning (9 AM): 7 posts
  • πŸ•˜ Evening (9 PM): 7 posts
  • Total: 14 new research posts daily!

πŸ”§ Manual Trigger (Anytime)

Run immediately anytime:

cd C:\Users\saifa\SaifaldeenALKADHIM.github.io
python .github/scripts/fetch_research_news.py

πŸ“± Monitor Progress

  1. Check local folder:
    Get-ChildItem _posts/ | Sort-Object -Property LastWriteTime -Descending | Select-Object -First 5
    
  2. Check blog updates:
    • Visit: https://SaifaldeenALKADHIM.github.io/year-archive/
    • Refresh every 5 minutes for latest posts
  3. Check git commits:
    git log --oneline | Select-Object -First 10
    

βš™οΈ Configuration

Change Post Count Per Run

Edit .github/scripts/fetch_research_news.py:

for paper in papers[:7]:  # Change 7 to your desired number

Change Schedule Times

Windows Task Scheduler:

  • Modify the triggers’ start times (currently 9 AM & 9 PM)

GitHub Actions (after token update):

  • Edit .github/workflows/auto-post-research-news.yml
  • Change cron times: ```yaml
    • cron: β€˜0 8 * * *’ # 8 AM UTC
    • cron: β€˜0 20 * * *’ # 8 PM UTC ```

Timezone Conversion

Current schedule (UTC):

  • πŸ•˜ 9 AM UTC β†’ 10 AM Budapest (CET)
  • πŸ•˜ 9 PM UTC β†’ 10 PM Budapest (CET)

Other timezones:

  • πŸ‡ΊπŸ‡Έ EST: 4 AM & 4 PM
  • πŸ‡ΊπŸ‡Έ PST: 1 AM & 1 PM
  • πŸ‡ͺπŸ‡Ί CET: 10 AM & 10 PM

πŸ“ˆ Expected Output

After 7 days with twice-daily posting:

  • πŸ“Š 98 new blog posts (14 per day Γ— 7 days)
  • πŸ“š Constantly updated research blog
  • πŸ”„ Real-time AI & sensor technology tracking
  • πŸ“± Fresh content for SEO & engagement

⚠️ Troubleshooting

IssueSolution
Posts not appearingCheck GitHub Pages rebuild (1-2 min)
Git push failsVerify token has push permissions
Duplicate postsCheck check_post_exists() logic
Task Scheduler not runningCheck Windows Event Viewer logs
No posts createdVerify arXiv API connectivity

🎯 Next Steps

Immediate (Local):

  1. Set up Windows Task Scheduler (Option A)
  2. Test morning run manually
  3. Verify posts appear on blog

Future (Cloud - Recommended):

  1. Update GitHub token with workflow scope
  2. Push .github/workflows/auto-post-research-news.yml
  3. Let GitHub Actions handle the automation

Status: Ready for twice-daily posting! πŸš€
Current Setup: Manual + Windows Task Scheduler option available