Skip to content

feat(route): add eventbrite #19007

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

elibroftw
Copy link

@elibroftw elibroftw commented May 4, 2025

Involved Issue / 该 PR 相关 Issue

N/A

Example for the Proposed Route(s) / 路由地址示例

/eventbrite/all-events/canada--toronto

New RSS Route Checklist / 新 RSS 路由检查表

  • New Route / 新的路由
  • Anti-bot or rate limit / 反爬/频率限制
    • If yes, do your code reflect this sign? / 如果有, 是否有对应的措施?
  • Date and time / 日期和时间
    • Parsed / 可以解析
    • Correct time zone / 时区正确
  • New package added / 添加了新的包
  • Puppeteer

Note / 说明

I don't know how to scope the radar to work on eventbrite.ca as well.

Future Improvements

  • Scrape max 5 or so pages (figure out how many new pages are added per day in NYC for example)
  • Use destination/search API from the get-go instead of web scraping (requires the place ID which requires smart/regex webscraping)

Copy link
Contributor

github-actions bot commented May 4, 2025

Successfully generated as following:

http://localhost:1200/eventbrite/all-events/canada--toronto - Failed ❌
HTTPError: Response code 503 (Service Unavailable)

Error Message:<br/>FetchError: [GET] &quot;https://eventbrite.com/d/canada--toronto/all-events/&quot;: 405 Not Allowed
Route: /eventbrite/:eventType?/:region
Full Route: /eventbrite/all-events/canada--toronto
Node Version: v22.15.0
Git Hash: af7a8817

Copy link
Contributor

github-actions bot commented May 7, 2025

Successfully generated as following:

http://localhost:1200/eventbrite/all-events/canada--toronto - Failed ❌
HTTPError: Response code 503 (Service Unavailable)

Error Message:<br/>FetchError: [GET] &quot;https://www.eventbrite.com/d/all-events/canada--toronto/&quot;: 405 Not Allowed
Route: /eventbrite/:region/:eventType?
Full Route: /eventbrite/all-events/canada--toronto
Node Version: v22.15.0
Git Hash: cfbdbbc6

@elibroftw elibroftw marked this pull request as draft May 7, 2025 02:50
Copy link
Contributor

Successfully generated as following:

http://localhost:1200/eventbrite/all-events/canada--toronto - Failed ❌
HTTPError: Response code 503 (Service Unavailable)

Error Message:<br/>FetchError: [GET] &quot;https://www.eventbrite.com/d/all-events/canada--toronto/&quot;: 405 Not Allowed
Route: /eventbrite/:region/:eventType?
Full Route: /eventbrite/all-events/canada--toronto
Node Version: v22.15.0
Git Hash: 2c008d82

@elibroftw elibroftw marked this pull request as ready for review May 11, 2025 19:04
@elibroftw elibroftw requested a review from TonyRL May 11, 2025 19:04
@elibroftw
Copy link
Author

Addressed comments, however I still want this to support the .ca domain before merging as people in Canada like me will be using the .ca event brite not the .com

Copy link
Contributor

Successfully generated as following:

http://localhost:1200/eventbrite/all-events/canada--toronto - Failed ❌
HTTPError: Response code 503 (Service Unavailable)

Error Message:<br/>FetchError: [GET] &quot;https://www.eventbrite.com/d/all-events/canada--toronto/&quot;: 405 Not Allowed
Route: /eventbrite/:region/:eventType?/:includePromoted?
Full Route: /eventbrite/all-events/canada--toronto
Node Version: v22.15.0
Git Hash: fe6a8631

Comment on lines +22 to +25
{
source: ['eventbrite.com/d/:region/:eventType', 'eventbrite.ca/d/:region/:eventType'],
target: '/:region/:eventType',
},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{
source: ['eventbrite.com/d/:region/:eventType', 'eventbrite.ca/d/:region/:eventType'],
target: '/:region/:eventType',
},
{
source: ['eventbrite.com/d/:region/:eventType'],
target: '/:region/:eventType',
},
{
source: ['eventbrite.ca/d/:region/:eventType'],
target: '/:region/:eventType',
},

Comment on lines +38 to +40
headers: {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:138.0) Gecko/20100101 Firefox/138.0',
},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the site only work on this fixed version of Firefox on Windows? If the answer is no, please remove it which RSSHub will use a randomised Chrome on macOS by default.

Comment on lines +63 to +64
title: `should be ${fallbackTitle}`,
author: pElements.length > 1 ? `should be ${$(pElements[1]).text()}` : 'unknown author',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not use should be or unknown author. Leave it undefined if you don't know.

description: eventData.summary,
id: eventData.eventbrite_event_id,
content: {
html: `${eventDate(eventData)}\n${getAuthor(eventData)}\n${getTicketPriceRange(eventData)}`,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
html: `${eventDate(eventData)}\n${getAuthor(eventData)}\n${getTicketPriceRange(eventData)}`,
html: `${eventDate(eventData)}<br>${getAuthor(eventData)}<br>${getTicketPriceRange(eventData)}`,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants