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
هدف: پیدا کردن لوکیشن کاربران و زمان ورود آنها به نرم افزار
مراحل اجرا:
ابتدا با استفاده از ip-api.com لوکیشن کاربر رو از ip کاربر میگیریم و در فایل tsv ذخیره میکنیم.
بعد با استفاده از لایبریری plotly اونها رو روی نقشه میزاریم.
سپس با همون کتابخونه یک آمار کلی برای تعداد افراد وارد شده در زمان های مختلف را میسازیم.
بعد از اون با استفاده از لایبریری dash یک slicer میسازیم که میتونیم بازه زمانی روزانه رو مشخص کنیم.
بعد از مشخص کردن بازه زمانی دیتابیس آپدیت میشود و فقط کاربرانی که در آن روز ها وارد نرم افزار شده اند در دیتابیس میمانند و بقیه حذف میشوند.
یک slicer ساعتی هم زیر نقشه میزاریم تا ساعت به ساعت کاربران رو روی نقشه نشان بدهد
Objective: Find users' locations and when they enter the application
Execution steps:
First, using ip-api.com, we get the user's location from the user ip and save it in a tsv file.
Then we draw them on the map using plotly librarian.
Then with the same library we make a general statistic for the number of people entered at different times.
Then we use the dash library to create a slicer that you can specify daily.
After specifying the time period, the database is updated and only the users who in those days the software entered in the database remain and the rest are deleted.
We also place an hour slicer under the map to show users on the map hour by hour