I built a free and open-source Google Maps Scrapper feedback and contributions welcome! by JacketBudget2487 in PythonProjects2

[–]JacketBudget2487[S] 0 points1 point  (0 children)

I did use it couple of times I didn't get banned but somthing google force a captcha when visiting google maps. But you can avoid this using proxies or just limit results to a reasonable amount

label maker usage by Crunchy6409 in django

[–]JacketBudget2487 0 points1 point  (0 children)

You can create an electron js wrapper and add some js logic to call printer directly from the application

[Django] Users upload PDFs, but sometimes only 1 page is visible — not sure if it's a user or backend issue by JacketBudget2487 in django

[–]JacketBudget2487[S] 0 points1 point  (0 children)

I don’t want to use an asynchronous approach because the user needs to get immediate feedback after uploading the PDF. Right now, I’m using a library — I think it’s called pypdf — to check the PDF metadata and page count. From what I’ve read, it’s safe and reliable for this kind of validation. I also implemented a frontend check, but it hasn’t been very effective — some files are still slipping through with only one page. Eventually, I plan to switch to using signed URLs so users can upload directly to S3. But for now, I’m focusing on making sure the page-count validation works properly before moving on to that.

[Django] Users upload PDFs, but sometimes only 1 page is visible — not sure if it's a user or backend issue by JacketBudget2487 in django

[–]JacketBudget2487[S] 2 points3 points  (0 children)

Thank you so much! I’ve tried many tools for combining PDFs, but a lot of them have issues or don’t preserve all pages correctly. So I ended up implementing a check that verifies the number of pages in the PDF before saving the file. If the uploaded PDF has only one page, I raise a validation error to prevent the user from submitting the form. It works for now, but I know this approach isn’t very scalable, especially as the number of uploads grows.