Closed miccheng closed 8 years ago
thanks for the heads up @miccheng!
Sent email to support@meetup.com
and included the meetup temporarily as part of whitelist events.
Steps to reproduce
Go to web console and fill in the params: https://secure.meetup.com/meetup_api/console/?path=/2/groups
Find Singapore Magento
Run the same query with node.js file (Get the {SECRET}
by registering at meetup.com api here)
var request = require('request')
request('https://api.meetup.com/2/groups?key={SECRET}&country=SG&city=Singapore&category_id=34&page=1000&fields=next_event&', function (error, response, body) {
if (!error && response.statusCode == 200) {
var data = JSON.parse(body).results
data.forEach(function(d) {
console.log(d.country, d.id, d.category.id, d.city, d.name)
if (d.name.toLowerCase().includes('magento')) {
console.log('Found Singapore Magento user group :)')
}
})
}
})
Expected outcome
Actual outcome
SG 95900 34 Singapore The Singapore Linux Meetup Group
SG 390620 34 Singapore The Singapore PHP User Group Meetup
SG 821735 34 Singapore The Singapore Security Meetup Group
SG 1169952 34 Singapore The Singapore Web Technology Network
SG 1295721 34 Singapore Open Source Alliance Singapore Meetup Group
SG 1461276 34 Singapore Singapore Web Design
SG 1653716 34 Singapore Drupal Developer Network (Singapore)
SG 1681073 34 Singapore R User Group - Singapore (RUGS)
SG 1704608 34 Singapore Agile Singapore
SG 1719626 34 Singapore Singapore Mobile Developers Meetup
SG 2725412 34 Singapore IxDA Singapore
SG 2850212 34 Singapore Cloud Computing Singapore
SG 3048762 34 Singapore Singapore iOS Developer Meetup
SG 3113562 34 Singapore The Singapore Quantified Self Meetup Group
SG 3142602 34 Singapore Singapore TechMeetups
SG 3202252 34 Singapore DevOps Singapore
SG 3943232 34 Singapore Software Craftsmanship Singapore
SG 3952812 34 Singapore Singapore Ruby Group
SG 4280832 34 Singapore Singapore Tech Startup
SG 4819942 34 Singapore HTML5Rocks@SG
SG 6363162 34 Singapore SingaporeJS
SG 7305932 34 Singapore Singapore MongoDB User Group
SG 7421142 34 Singapore Health 2.0 Singapore
SG 7487332 34 Singapore Singapore Network Engineering Meetup
SG 7517692 34 Singapore Animators in Singapore
SG 8103652 34 Singapore Bitcoins in Singapore
SG 8165752 34 Singapore BigData.SG & Hadoop.SG
SG 8298902 34 Singapore Joomla Professional Network
SG 8702892 34 Singapore Android In Asia
SG 8921582 34 Singapore Cloud Security Alliance Singapore Chapter
SG 9319232 34 Singapore AIPMM Singapore
SG 10056612 34 Singapore HackerNest Singapore Tech Socials
SG 10069742 34 Singapore Singapore GPU Users
SG 10448242 34 Singapore OpenStack Singapore
SG 11015672 34 Singapore Meteor Singapore
SG 11168062 34 Singapore DataScience SG
SG 11204382 34 Singapore PUGS (Postgres Users Group Singapore)
SG 11249802 34 Singapore Agile Testing Alliance Singapore
SG 11256032 34 Singapore CoFoundersLab Matchup Singapore
SG 11260962 34 Singapore HASKELL.SG
SG 11430272 34 Singapore SG Technopreneurs
SG 11596202 34 Singapore NodeBots Singapore
SG 12117622 34 Singapore Singapore Startup Founder 101
SG 12502182 34 Singapore ProductTank Singapore
SG 12690122 34 Singapore Singapore Scala Programmers
SG 12764782 34 Singapore Big Data Developers in Singapore
SG 12871912 34 Singapore Singapore Scaled Agile & Enterprise Entrepreneurship Meetup
SG 12872522 34 Singapore IPv6 Research and Development Group
SG 12876582 34 Singapore Mobile Apps Made Simple
SG 12941452 34 Singapore Creative Coders
SG 12988862 34 Singapore Singapore Salesforce Developer Group
SG 13024512 34 Singapore AWS User Group Singapore
SG 13429512 34 Singapore Singapore Functional Programmers Meetup
SG 13496312 34 Singapore Singapore Rasp Pi Enthusiasts
SG 13590282 34 Singapore Singapore Mobile .Net Developers
SG 13661682 34 Singapore Singapore Spring User Group
SG 13769222 34 Singapore Singapore Node Community
SG 13903282 34 Singapore Next Bank Singapore
SG 13917282 34 Singapore Singapore FileMaker Group
SG 14493282 34 Singapore TADMeetup Singapore
SG 14537392 34 Singapore Singapore Node.JS
SG 14609772 34 Singapore GoSG
SG 14725882 34 Singapore Elasticsearch Meetup - SG
SG 14921552 34 Singapore Singapore Creative Coding Meetup
SG 14929942 34 Singapore シンガポール日本人エンジニアの会
SG 14948802 34 Singapore HackLaunch Singapore
SG 15320932 34 Singapore Tableau User Group Singapore
SG 15475072 34 Singapore Singapore WebRTC Meetup
SG 15720002 34 Singapore On Cloud Nine
SG 15750332 34 Singapore Internet of Things Singapore
SG 16236342 34 Singapore Singapore Data Science Meetup
SG 16241232 34 Singapore Personalized Eyewear
SG 16389872 34 Singapore Singapore OpenStack User Group Meetup
SG 16412132 34 Singapore DataKind SG
SG 16500392 34 Singapore Kx Community Singapore Meetup
SG 16524502 34 Singapore Singapore Agile Meetup
SG 16540562 34 Singapore Singapore Agile Business Conference Meetup
SG 16593432 34 Singapore Wearable Technologies | Singapore
SG 16625342 34 Singapore Insightful analytics for Business
SG 16637192 34 Singapore Docker Singapore
SG 16851552 34 Singapore Lean Kanban Singapore (Limited WIP Society)
SG 16869012 34 Singapore Internet of Things - Singapore Meetup
SG 17085562 34 Singapore Digital Performance Meetup SG
SG 17181322 34 Singapore Singapore Software Testing Meetup
SG 17185642 34 Singapore MikroTik User Group Singapore (MUG-SG)
SG 17604562 34 Singapore Singapore Mobile Healthcare Startups
SG 17962772 34 Singapore Apache Spark Singapore
SG 17996232 34 Singapore Singapore New T&E Technology Meetup
SG 18180754 34 Singapore Digital (Web) Analytics Wednesdays Singapore
SG 18197819 34 Singapore Singapore VR Meetup
SG 18210814 34 Singapore .NET Developers Singapore
SG 18213747 34 Singapore Singapore Cryonics
SG 18216242 34 Singapore Singapore Salesforce.com Developers Meetup
SG 18241528 34 Singapore Design Innovation Singapore
SG 18253077 34 Singapore FOSSASIA Singapore OpenXLab Meetup
SG 18271642 34 Singapore eVida smart home geek
SG 18277626 34 Singapore Data mining singapore
SG 18312266 34 Singapore Big Data Singapore
SG 18312857 34 Singapore Business F.U.N.
SG 18318692 34 Singapore Singapore FPV Fun Meetup (Drone Fun)
SG 18324557 34 Singapore Azure Community Singapore (ACS)
SG 18361897 34 Singapore Hackware
SG 18368967 34 Singapore WACA Web Analytics Consultants Association Singapore
SG 18373767 34 Singapore 3CRM centric Software Product Management-Development Meetup
SG 18400816 34 Singapore AsiaVR Association - Singapore Virtual Reality meetup
SG 18407600 34 Singapore AMIMOTO: WordPress +Amazon Web Services for ALL Tech Levels
SG 18412538 34 Singapore Layer 7 Cyber Security Singapore
SG 18413023 34 Singapore Mobile Cloud Singapore
SG 18417697 34 Singapore Singapore Python User Group
SG 18429432 34 Singapore Product Hunt Singapore Meetup
SG 18429776 34 Singapore Microsoft User Groups (Singapore)
SG 18446496 34 Singapore ONA Singapore
SG 18466583 34 Singapore Ruby Tea Party (SG)
SG 18467307 34 Singapore Singapore Virtual Reality (SGVR) Meetup
SG 18485655 34 Singapore Singapore Data Center Professionals Meetup
SG 18490352 34 Singapore Singapore Data Insights for Business Forum
SG 18493025 34 Singapore Null Singapore - The Open Security Community
SG 18495475 34 Singapore Linux Kernel Developers
SG 18495568 34 Singapore Singapore GDS
SG 18509469 34 Singapore PyData Singapore
SG 18509757 34 Singapore Bluemix Singapore
SG 18515894 34 Singapore IT Business Partner - SEASIA
SG 18519858 34 Singapore Ethereum Singapore
SG 18522131 34 Singapore Grumpy Gits SG
SG 18522335 34 Singapore Singapore Financial Engineering & Machine Learning
SG 18536657 34 Singapore All Singapore Startups Entrepreneurs SMEs
SG 18539599 34 Singapore Singapore Geek Girls
SG 18553183 34 Singapore Community x Tech x Social Entrepreneurship - Singapore
SG 18556372 34 Singapore WordPress Singapore
SG 18560800 34 Singapore Singapore WebScale User Group
SG 18566806 34 Singapore Singapore iOS Dev Scout Meetup
SG 18567644 34 Singapore Mobile Growth Singapore
SG 18575207 34 Singapore Singapore Cloud Foundry Meetup
SG 18575378 34 Singapore Singapore Innovation X
SG 18578180 34 Singapore Live Agile Workshop & Forum Group
SG 18578278 34 Singapore Singapore Graphic Design and Publishing Group
SG 18584203 34 Singapore Ansible Singapore
SG 18589883 34 Singapore Hacks/Hackers Singapore
SG 18591374 34 Singapore Lifestyle Bloggers in Singapore
SG 18596548 34 Singapore Agile Coaching Circles Singapore
SG 18598360 34 Singapore Singapore Puppet User Group
SG 18608538 34 Singapore Singapore Software QA Meetup
SG 18616301 34 Singapore Singapore Clojure Meetup
SG 18642959 34 Singapore Singapore Web Performance & Security Meet-Up
SG 18645598 34 Singapore Singapore Elixir Meetup
SG 18650303 34 Singapore Apache Lucene/Solr SG
SG 18654414 34 Singapore Analytics.Club Singapore
SG 18677524 34 Singapore Pre Echelon Asia Summit Informal Meetup on 22nd June at 6pm
SG 18678574 34 Singapore Singapore Rust Meetup
SG 18685623 34 Singapore Startup Agile Group - Singapore
SG 18687889 34 Singapore Apple products lovers
SG 18699153 34 Singapore Huge Singapore
SG 18700061 34 Singapore SG Game Developers Meetup
SG 18769336 34 Singapore Visual Design Singapore
SG 18777951 34 Singapore Machine Learning SG
SG 18787640 34 Singapore Data Ambassadors Singapore
SG 18805717 34 Singapore Singapore PHP and Yii Framework Meetup
SG 18819635 34 Singapore Work in USA Meetup for Big Data, Android, iOS & Web:
SG 18828983 34 Singapore PayPal FinTech XChange
SG 18843534 34 Singapore ReactJS Singapore
SG 18847054 34 Singapore Web & Mobile Development Meet-Up
SG 18847677 34 Singapore Visual Studio ALM Singapore
SG 18855823 34 Singapore Mobile Studies International (Singapore)
SG 18861726 34 Singapore Internet of Everything Singapore
SG 18865617 34 Singapore The Brain Meetup, Singapore
SG 18888550 34 Singapore Youth Startups
SG 18921027 34 Singapore CTO School Asia Pacific
SG 18980897 34 Singapore StartupBlink Singapore
SG 18981538 34 Singapore Design Dojo Singapore
SG 19049879 34 Singapore Lean Enterprise Singapore
SG 19050935 34 Singapore Singapore Coding Meetup
SG 19053030 34 Singapore Neural Network Reading Club SG
SG 19061878 34 Singapore SingaporeCSS
SG 19066020 34 Singapore Singapore Zabbix Users Group
SG 19073965 34 Singapore Singapore Microcomputer Society
SG 19075251 34 Singapore Tachyon Singapore
SG 19094741 34 Singapore Competitive Programming SG
SG 19103632 34 Singapore Singapore Neo4j Meetup
SG 19108946 34 Singapore Shapeways Singapore
SG 19113923 34 Singapore Social VR Mixer : Singapore Edition
SG 19125602 34 Singapore Singapore Product Management Meetup
SG 19128146 34 Singapore Singapore Web Hosting FAQ
SG 19147279 34 Singapore AWS Cost Management, Cloud Insights and Automation Meetup
SG 19159249 34 Singapore Singapore Amazon Sellers Group
SG 19168149 34 Singapore Singapore IT Project Managers & Producers
SG 19174949 34 Singapore Singapore Robot Operating System(ROS) Meetup
SG 19189179 34 Singapore UX TL;DR
SG 19211961 34 Singapore Singapore GraphLab Users
SG 19214011 34 Singapore OpenAI Singapore
SG 19216378 34 Singapore Work At Home Business Meetup For Everyone
SG 19219532 34 Singapore The Singapore MySQL Meetup
SG 19226834 34 Singapore Product Camp Singapore
SG 19300443 34 Singapore The Modern Geeks
SG 19347440 34 Singapore Singapore Digital Transformation Community
SG 19358176 34 Singapore Singapore Apache spark Meetup
SG 19358542 34 Singapore Singapore Mobile RockStars
SG 19385996 34 Singapore Singapore Meetup @ Inside 3D Printing
SG 19424922 34 Singapore Technologies of the future
SG 19429919 34 Singapore Singapore Computer Science Meetup
SG 19432258 34 Singapore DevSecOps Singapore
I noticed there's exactly 200 results. Pagination?
@hboon thanks! Interesting I did not notice that. Maybe I should read up more on what page: 1000
does, or maybe another param that I should fill up to get all results instead of just 200.
@hboon is right.
Need to request offset 0:
https://api.meetup.com/2/groups?key={SECRET}&country=SG&city=Singapore&category_id=34&page=200&offset=0&fields=next_event
And offset 1:
https://api.meetup.com/2/groups?key={SECRET}&country=SG&city=Singapore&category_id=34&page=200&offset=1&fields=next_event
The change in the URL is page=200&offset=0
Anyone want to take this up?
Big thanks @hboon and @kahwee - I will add offset: 0
as part of the meetup.com config here https://github.com/webuildsg/webuild/blob/e95b60dc9b445e584ba3b9ebfb2a5d558573524e/config.js#L111-L118
Hmm.. Does it automatically make multiple calls using an increasing value of offset
like @kahwee mentioned?
(Also I didn't check, offset might be 0, 200, 400, etc instead of 0, 1, 2 too..)
eeeks! Yes, it does not make multiple calls with offset=0
and then offset=1
.
But how many offset
we need to make? Why stop at 1
? Trying to get to the API docs to know what is offset
Here's the doc: http://www.meetup.com/meetup_api/docs/2/groups/, but it doesn't explain offset
But here's the answer when we set offset=1
:smile:
Found 27 Meetup.com groups
SG 19432258 34 Singapore DevSecOps Singapore
SG 19443672 34 Singapore 9goTech - Technology Start-Up & Innovation Symposium
SG 19482908 34 Singapore Singapore Smart Home & Intelligent Property Meetup
SG 19488686 34 Singapore Singapore Magento User Group
Found Singapore Magento user group :)
SG 19529162 34 Singapore School of Startup
SG 19529569 34 Singapore Singapore Cybersecurity Meetup
SG 19542112 34 Singapore Old group. Go here: http://www.meetup.com/BitcoinSingapore/
SG 19542429 34 Singapore Singapore from PhD to Startup
SG 19543645 34 Singapore HR Analytics Singapore
SG 19550420 34 Singapore SG Web Programming Workshop
SG 19562531 34 Singapore Singapore Game Apps Design And Development
SG 19564435 34 Singapore Citizen Maker Movement
SG 19593085 34 Singapore Singapore Full Stack Developer
SG 19617994 34 Singapore Product Design Singapore
SG 19623244 34 Singapore Jenkins User Group Singapore
SG 19624588 34 Singapore AppDynamics Singapore User Group
SG 19676036 34 Singapore Singapore Algorithmic Trading Meetup
SG 19690706 34 Singapore Future of Data: Singapore
SG 19705933 34 Singapore Singapore SDN & NFV Meetup
SG 19722112 34 Singapore Singapore Social Engineers Hangout
SG 19738071 34 Singapore HyperLedger (Singapore Chapter)
SG 19754453 34 Singapore Firebase Meetup (South East Asia)
SG 19756671 34 Singapore Greater Singapore Cyber Security for Controls Systems
SG 19768239 34 Singapore Fedora in Singapore
SG 19770265 34 Singapore Singapore Djangonauts
SG 19792372 34 Singapore Singapore Data Science Course (For Beginners)
SG 19838679 34 Singapore SAP Professional Group
Looks good :)
http://www.meetup.com/Singapore-Magento-User-Group/events/230192978/