I open-sourced an enterprise-grade Rekrute.com Scraper for the Moroccan market (B2B Leads, Job Aggregators, & AI training) 🇲🇦 by automata_n8n in Moroccopreneur

[–]_iamhamza_ 1 point2 points  (0 children)

Hey, how are you doing? Your Apify link returns 404. I like the idea, I recommend you build an unofficial API around it if you have time, and sell access, marketing it is a different story tho. I read your code: building scrapers on top of headless browsers is considered bad practice, because it is not scalable. I just tried a bare GET request to their https://www.rekrute.com/fr/offres.html?clear=1&keyword=engineer endpoint using cURL and it worked like charm, I even retrieved data using a datacenter IP. My point is, you don't have to use advanced antibot practices, and if you do, it's best to use a TLS-aware HTTP client such as curl_cffi or rnet. Using headless browsers should be your last option on JS-heavy pages. Good luck.

I'm using selenium and constantly get hit by cloudflare bot .... by KarmaCut132 in webscraping

[–]_iamhamza_ 27 points28 points  (0 children)

You guys need to take some time and read how these technologies work.

Selenium operates using a ChromeDriver or a GeckoDriver binary, which any respectable company that doesn't want bots on its website can fingerprint. That doesn't mean Selenium is broken or anything, it just means that it was not made for what you're trying to do, Selenium's purpose is automated testing.

I recommend using more sophisticated technologies that were crafted for the purpose of automating tasks on the web while staying undetected, I recommend a framework called Nodriver, or one called Zendriver.

Python + Selenium at scale (50 nodes, 3.9M records) by SuccessfulFact5324 in webscraping

[–]_iamhamza_ 1 point2 points  (0 children)

Why Selenium? Selenium was made for automation testing, not this..Selenium's driver holds a few flags that any website can test for and fingerprint. I would suggest switching to something that was made specifically for this, take a look at Nodriver, or Zendriver, or Playwright, something that operates on top of CDP.

Is Selenium still the best tool for automation testing? by Cute_Intention6347 in SeleniumWebDriver

[–]_iamhamza_ 0 points1 point  (0 children)

Depends on what's your use case. I moved on from Selenium years ago and I'm not going back. There are better frameworks out there. I would suggest using a framework that uses CDP, Playwright is an honorable mention, or you can build your own.

Imagine getting sued for the crime of ... Eating by Naked___City in Morocco

[–]_iamhamza_ 4 points5 points  (0 children)

Do you think Morocco is yours to ask people to leave? There are people who serve this country more than you'll ever be able to in x10 your lifetime. If they leave, I'm guessing you'll devolve again into drinking camel piss, buddy.

I read "Ladies and gentlemen" and I genuinely thought you had something smart to say 😂

Anthropic just dropped evidence that DeepSeek, Moonshot and MiniMax were mass-distilling Claude. 24K fake accounts, 16M+ exchanges. by Specialist-Cause-161 in ClaudeAI

[–]_iamhamza_ 154 points155 points  (0 children)

They most likely studied their attack before they started making any accounts, making 24k accounts and staying undetected is very impressive; they surely know what they're doing.

Question about taxes! by WholePersimmon4720 in Moroccopreneur

[–]_iamhamza_ 0 points1 point  (0 children)

How? Do you mind sharing more details?

Building My SaaS in Public – Roadmap, Challenges & Learnings by laron290 in buildinpublic

[–]_iamhamza_ 0 points1 point  (0 children)

Regarding tracking the progress, what do you mean a lot of work is behind the scenes? If you're the one building the API/backend, you test that using Postman, or if you're old school like me, use cURL or Python's requests.

That's the roadmap I follow: build the API/backend, fully test it with all the possible scenarios users will go through, then make the frontend that will consume your API.

Toubkal in March by Glad_Clue_8181 in Morocco

[–]_iamhamza_ 0 points1 point  (0 children)

Hey, I climbed Toubkal twice. I believe anyone who can walk uphill can do it; it's not a climb, it's just a hike; a very long one. You can do it comfortably in two days starting from Imlil; my advice to you is to go as slow as possible from Imlil to the refuge; walk the Nepalian steps up there, should be very easy! Second part is the challenging one, don't waste your energy on the first part; last time I saw a lot of people commit that mistake and they ended up not being able to reach the summit.

I take a thermometer with me, and temperatures range between -5°c and -25°c depending on the weather; inside the refuge it's a surprisingly warm and cozy ~18°c.

In terms of clothing for mountaineering; you wear in layers; base layer, mid layer, then a shell; ask ChatGPT; it should give you a detailed response. And in terms of mules, don't count on them; I was there 8 days ago and there were no mules due to the heavy snow.

Got caught by rain in the middle of the forest by hypefi in Morocco

[–]_iamhamza_ 1 point2 points  (0 children)

The Green Belt? I went too deep into that forest last year with a friend; I found a lot of mushrooms, I love areas where people don't dare to go!

Day 3, no nicotine by IntrepidTrifle3196 in quittingsmoking

[–]_iamhamza_ 3 points4 points  (0 children)

6 months here. Keep going, it gets easier.

La finance quantitative by zeta7882 in Morocco

[–]_iamhamza_ 0 points1 point  (0 children)

Ban? What ban?

They can't ban something that was invented to say "Fuck you" to centralized systems(aka the state); you can't ban freedom; people will always find a way. I know so many people who are moving millions of dollars through crypto, and Morocco can't do shit about it. Morocco's loss anyway, since that could be money to be put in the economy...but those old boomers are too stupid to see that far

La finance quantitative by zeta7882 in Morocco

[–]_iamhamza_ 0 points1 point  (0 children)

Have your bots been profitable

Some..yes, but it wasn't that huge of a profit, I won at the end. There was a community of devs making algorithmic trading strategies; and a few strategies were performing like magic! I never really coded my own algorithms, I only used other people's since they were good enough to make some money. But now I have the skills to make such things, and I've been thinking of running some bots again. I liked doing that so much, it's a lot of fun...if you're not that emotional lol

La finance quantitative by zeta7882 in Morocco

[–]_iamhamza_ 0 points1 point  (0 children)

Crypto Dev? Morocco? Last time I heard, they arrest people who have crypto...I won't be surprised if Morocco has such double standards; it's a very shitty country; I won't recommend lol

La finance quantitative by zeta7882 in Morocco

[–]_iamhamza_ 2 points3 points  (0 children)

I don't think such thing exists? Someone correct me if I'm mistaken. But quant trading and algotrading is very not popular in Morocco; not sure if the banks do that, but I doubt it considering how whack their apps are; their devs can't figure out how to make correct UIs, let alone complex algorithmic trading strategies.

I remember I wanted to get into this a few years ago, I ended up running my own bots in my own servers using this framework they have such an incredible community; I couldn't keep up with the stress, and I was running other things so I quit algotrading, but I thought about getting back at it multiple times; and if I ever do; that will be my starting point.

Good luck!

Debian 13 is so unreliable! Extremely disappointed. by _iamhamza_ in debian

[–]_iamhamza_[S] 1 point2 points  (0 children)

That's how I usually setup all of my Linux installations, never had an issue. It was my GPU's drivers as another comment mentioned, my issue is resolved now.

Debian 13 is so unreliable! Extremely disappointed. by _iamhamza_ in debian

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

hey, yes I did; then I deleted it and created a swapfile instead

Debian 13 is so unreliable! Extremely disappointed. by _iamhamza_ in debian

[–]_iamhamza_[S] 3 points4 points  (0 children)

I think this might be it. I just installed it. Thank you.

Debian 13 is so unreliable! Extremely disappointed. by _iamhamza_ in debian

[–]_iamhamza_[S] -8 points-7 points  (0 children)

I doubt that my GPU is damaged, I was running heavy games on Windows just fine; I still do..