Apr-12-2018, 07:51 AM
(This post was last modified: Apr-12-2018, 07:51 AM by digitalmatic7.)
I've run into issues getting a counter to work inside the scraper function.
I just need a very basic counter that increments for each URL (iteration) that is processed. I tried using a global variable and it didn't work. It's assigning a counter to each individual process:
![[Image: LPIpPj58SNy5-jXFfi8y_A.png]](https://image.prntscr.com/image/LPIpPj58SNy5-jXFfi8y_A.png)
I tried passing the variable as an argument but couldn't get it to work.
What you guys think? Is it even possible to have a counter work with multiple processes?
Code here: https://pastebin.com/qnRbdaC2
I just need a very basic counter that increments for each URL (iteration) that is processed. I tried using a global variable and it didn't work. It's assigning a counter to each individual process:
![[Image: LPIpPj58SNy5-jXFfi8y_A.png]](https://image.prntscr.com/image/LPIpPj58SNy5-jXFfi8y_A.png)
I tried passing the variable as an argument but couldn't get it to work.
What you guys think? Is it even possible to have a counter work with multiple processes?
Code here: https://pastebin.com/qnRbdaC2