You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 17, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 17, 2025. It is now read-only.
I tried to reproduce your issue and in firefox, the scrolling worked. Had you been trying on chrome?
Despite the scrolling working fine, the results were wrong and missing a lot of entries (maybe you also talked about this observation when saying the scrolling would not be working).
I found a possible reason for that:
Whatever UI framework Dropbox is using, it reuses the table-row elements and only replaces their contents. After scrolling the page, webscraper may not reconsider elements that were already existing (or overrides it with the most recent values?).
If you're simply want to download the data once, here is an alternative method that might work for you... (click this paragraph)
Re-request the events data from Dropbox' server and adjust the page_size:
open the dropbox/events page
open your browser's developer tools (F12)
click on the Network tab
reload your page
filter the network results for "/events/ajax"
right click the first entry
click on "Edit and Resend"
in the request body replace "page_size=25" with "page_size=250"
(the request body looks something like this: is_xhr=true&t=...&page_size=25&ns_ids=2199782192%2C2410245600%2C94858538×tamp=1610389011&include_avatars=true)
wait for the request to finish
right click on the request in the list of request
choose "copy response"
there you have it, as JSON. You'd still need to distill you're desired data fields from it (e.g. use regex to get the links out of the html string)
here is how one entry from this request looks like:
{"0": {"ago": "vor 54 Min.","pkey": "836799753 94858538","is_dup": false,"name": "asdasd","timestamp": 1610386540,"event_blurb": "Sie haben die Datei <a target='_blank' href='/event_details/58540542/94858538/804719346/0'>test (17) (1) (1).web</a> hinzugefügt","context_blurb": null,"avatar_url": null,"blurb": "Sie haben die Datei <a target='_blank' href='/event_details/58540542/94858538/804719346/0'>test (17) (1) (1).web</a> hinzugefügt.","id": 836799753,"ns_id": 94858538}}
there may be an upper limit for page_size, that the api allows. Maybe check the last entry from your response agains the last entry you can see on the page to make sure you've got everything.
Hey Felix,
Yes it was Chrome.
I just tried Firefox too, and it does the same thing, that is, it only scrolls once and then quits, but it does produce the data.
I'm looking for a solution where it continues to scroll, and continues to collect data until I quit the routine. So, yes, looking for an automated scenario.
I've had https://webscraper.io/ work in this capacity on other sites.
After scrolling the page, webscraper may not reconsider elements that were already existing (or overrides it with the most recent values?).
Maybe that's why it's not working and cannot be realized using Webscaper.
Btw. the alternative approach I've described in the earlier post lets you download hundreds of events with a few clicks... check it out if you haven't already.
I think i got it. But it appears to only scrapes the first page of events. Is it possible for it to keep scrolling, and continue to capture data? That's what webscraper.io does.
Also, possible to export this out to a CSV too?
The current page size is 250, when I tested with 35 events all of them appeared. Can we come over a call and see the issue. Also its possible to export results as CSV, do let me know what particular fields you require in CSV?
I've added the code to write extracted data to a csv file, do let me know if you require any changes? Execute docker build -t scraper . then docker run --name scraper_container scraper and then docker cp scraper_container:/scraper/output.csv ./output.csv
I will test the CSV.
I need a solution that exports out months and months of events. So it would seems that the solution needs to automatically scroll down on the events page, in order to bring up more events to export.
Activity
gitcoinbot commentedon Jan 11, 2021
Issue Status: 1. Open 2. Started 3. Submitted 4. Done
This issue now has a funding of 0.0932 ETH (100.0 USD @ $1072.99/ETH) attached to it.
theoryshaw commentedon Jan 11, 2021
Forum link: https://forum.webscraper.io/t/dropbox-stops-after-one-scroll/6864
felixniemeyer commentedon Jan 11, 2021
Hi theoryshaw,
I tried to reproduce your issue and in firefox, the scrolling worked. Had you been trying on chrome?
Despite the scrolling working fine, the results were wrong and missing a lot of entries (maybe you also talked about this observation when saying the scrolling would not be working).
I found a possible reason for that:
Whatever UI framework Dropbox is using, it reuses the table-row elements and only replaces their contents. After scrolling the page, webscraper may not reconsider elements that were already existing (or overrides it with the most recent values?).
If you're simply want to download the data once, here is an alternative method that might work for you... (click this paragraph)
Re-request the events data from Dropbox' server and adjust the page_size:
(the request body looks something like this: is_xhr=true&t=...&page_size=25&ns_ids=2199782192%2C2410245600%2C94858538×tamp=1610389011&include_avatars=true)
there you have it, as JSON. You'd still need to distill you're desired data fields from it (e.g. use regex to get the links out of the html string)
here is how one entry from this request looks like:
there may be an upper limit for page_size, that the api allows. Maybe check the last entry from your response agains the last entry you can see on the page to make sure you've got everything.
Cheers
Felix
theoryshaw commentedon Jan 11, 2021
Hey Felix,
Yes it was Chrome.
I just tried Firefox too, and it does the same thing, that is, it only scrolls once and then quits, but it does produce the data.
I'm looking for a solution where it continues to scroll, and continues to collect data until I quit the routine. So, yes, looking for an automated scenario.
I've had https://webscraper.io/ work in this capacity on other sites.
Maybe that's why it's not working and cannot be realized using Webscaper.
felixniemeyer commentedon Jan 11, 2021
Ok, just to make sure it's not about the specific date in the startUrl:
please can you try whether scrolling works when you use this:
{ "_id": "dropbox2", "startUrl": ["https://www.dropbox.com/events"], "selectors": [{ "id": "tr1", "type": "SelectorElementScroll", "parentSelectors": ["_root"], "selector": "tr.mc-media-row", "multiple": true, "delay": 2000 }, { "id": "date", "type": "SelectorText", "parentSelectors": ["tr1"], "selector": "div.mc-media-cell-text-detail", "multiple": false, "regex": "", "delay": 0 }, { "id": "span", "type": "SelectorHTML", "parentSelectors": ["tr1"], "selector": "span", "multiple": false, "regex": "", "delay": 0 }, { "id": "link", "type": "SelectorLink", "parentSelectors": ["tr1"], "selector": "a:first", "multiple": false, "delay": 0 }] }Btw. the alternative approach I've described in the earlier post lets you download hundreds of events with a few clicks... check it out if you haven't already.
theoryshaw commentedon Jan 12, 2021
I tried that too, but unfortunately it didn't work either. :\
gitcoinbot commentedon Jan 13, 2021
Issue Status: 1. Open 2. Started 3. Submitted 4. Done
Work for 0.0932 ETH (94.04 USD @ $1065.8/ETH) has been submitted by:
agbilotia1998 commentedon Jan 13, 2021
Hi @theoryshaw can you please check this repo https://github.com/agbilotia1998/dropbox-event-scraper
For getting the data, open networks tab in chrome, filter by
/events/ajax, right click on first result and click on copy-> copy as node.js fetch.The node.js fetch should look something like this:
copy the object from above like:
and paste it in options.json in the above repo.
Run the script by executing
docker build -t scraper .followed bydocker run scraperyou will get a list of events.theoryshaw commentedon Jan 14, 2021
Thanks @agbilotia1998. I was looking for a solution using webscraper.io, however, this might work, as well.
I'm somewhat tech savvy, but can you do a video screen capture of the steps you are taking to run this script?
agbilotia1998 commentedon Jan 14, 2021
Sure, will do a screen capture.
theoryshaw commentedon Jan 14, 2021
I think i got it. But it appears to only scrapes the first page of events. Is it possible for it to keep scrolling, and continue to capture data? That's what webscraper.io does.

Also, possible to export this out to a CSV too?
agbilotia1998 commentedon Jan 14, 2021
The current page size is 250, when I tested with 35 events all of them appeared. Can we come over a call and see the issue. Also its possible to export results as CSV, do let me know what particular fields you require in CSV?
agbilotia1998 commentedon Jan 14, 2021
I've added the code to write extracted data to a csv file, do let me know if you require any changes? Execute
docker build -t scraper .thendocker run --name scraper_container scraperand thendocker cp scraper_container:/scraper/output.csv ./output.csvtheoryshaw commentedon Jan 14, 2021
I will test the CSV.
I need a solution that exports out months and months of events. So it would seems that the solution needs to automatically scroll down on the events page, in order to bring up more events to export.
agbilotia1998 commentedon Jan 14, 2021
Right now the page size is 250, you can increase the page size to get more data.
1 remaining item
agbilotia1998 commentedon Jan 14, 2021
As of now there is name, timestamp, ago and blurb fields, do you need all of them?
theoryshaw commentedon Jan 14, 2021
just add 'event blurb' and that should suffice.
theoryshaw commentedon Jan 14, 2021
would increasing the page size be able to get months and months of data?
agbilotia1998 commentedon Jan 14, 2021
I've added
event_blurbas well. Yes, increasing the page size should be able to get months of data.theoryshaw commentedon Jan 14, 2021
Seems the
field is missing from the csv.
agbilotia1998 commentedon Jan 14, 2021
The last field in csv is
blurbtheoryshaw commentedon Jan 14, 2021
'event blurb' is included, but 'blurb' is not.

theoryshaw commentedon Jan 14, 2021
sorry, you are correct, i see 'blurb' now.
agbilotia1998 commentedon Jan 14, 2021
Okay, great!!
theoryshaw commentedon Jan 14, 2021
awesome solution..thx.
let me see if I can get months of data, if so, i'll shoot you payment
Thanks!
theoryshaw commentedon Jan 14, 2021
I increased the page_size to 2500, but got the following error...
agbilotia1998 commentedon Jan 14, 2021
Can we come over a call?
theoryshaw commentedon Jan 14, 2021
sure, just emailed you a jitsi link.
agbilotia1998 commentedon Jan 14, 2021
I've updated the script, please check!
theoryshaw commentedon Jan 14, 2021
Nicely done Ayush! thanks for the help. Will shoot you the funds.