Coder Social home page Coder Social logo

Run in docker about deletefb HOT 16 CLOSED

weskerfoot avatar weskerfoot commented on August 17, 2024 3
Run in docker

from deletefb.

Comments (16)

weskerfoot avatar weskerfoot commented on August 17, 2024 1

from deletefb.

weskerfoot avatar weskerfoot commented on August 17, 2024 1

from deletefb.

weskerfoot avatar weskerfoot commented on August 17, 2024 1

@mmatoscom
I think this line
https://github.com/mmatoscom/DeleteFB/blob/1cccf4a2c5eb2371fcba88966c81235d726715b0/Dockerfile#L77

Should be CMD python3 -m deletefb.deletefb since you're executing it as a module, not directly as a script

from deletefb.

weskerfoot avatar weskerfoot commented on August 17, 2024 1

Also, do you think it would be possible to use alpine as the base image? Or at least a minimal debian base image?

from deletefb.

metaver5o avatar metaver5o commented on August 17, 2024 1

Hi @weskerfoot
I am creating a Makefile to make it easier to use docker, so by typing make it will build the image and ask for the values as follows:

	@read -p "Enter your Facebook email: " email; \
	@read -p "Enter your Facebook password: " password; \
	@read -p "Enter your Facebook username: " username;

then spin-up the container with proper env vars loaded, almost getting there, when finished will ping you again
cheers
Marco

from deletefb.

weskerfoot avatar weskerfoot commented on August 17, 2024 1

from deletefb.

metaver5o avatar metaver5o commented on August 17, 2024

I am doing the Dockerfile this week, won't be lightweight since we need to export X11 in order to open graphics in host (for browser/selenium), and will work only in Linux and OSX. When it work I will open a PR. cheers, Marco

from deletefb.

metaver5o avatar metaver5o commented on August 17, 2024

I am currently stuck with the following:
/usr/bin/python3: Relative module names not supported
you can check the files on my fork at https://github.com/mmatoscom/deletefb

from deletefb.

metaver5o avatar metaver5o commented on August 17, 2024

@weskerfoot Hi, thanks for the messages. I will try the correct CMD, and yes i think it could be a lightweight image since we are mounting X in the host, will check today.

from deletefb.

metaver5o avatar metaver5o commented on August 17, 2024

@weskerfoot hi, so it worked, now I got to setup ENV vars
in order to pass them from command line when container is starting
and then check for X

Step 13/13 : CMD python3 -m deletefb.deletefb
 ---> Running in d65aeaf6337c
Removing intermediate container d65aeaf6337c
 ---> cd95bd7252f3
Successfully built cd95bd7252f3
Successfully tagged deletefb:latest
usage: deletefb.py [-h] [-M {wall,unlike_pages}] -E EMAIL [-P PASSWORD] -U
                   PROFILE_URL [-F TWO_FACTOR_TOKEN] [-H] [--no-archive]
                   [-Y YEAR]
deletefb.py: error: the following arguments are required: -E/--email, -U/--profile-url

from deletefb.

metaver5o avatar metaver5o commented on August 17, 2024

even using debian:stable-slim which is 55.3M, the image size is 1.12GB
but it built fine and we got the same output, will work on the env vars now

→ docker images|grep deletefb
deletefb                         latest              b76434a64455        13 minutes ago      1.12GB

Step 12/12 : CMD python3 -m deletefb.deletefb
 ---> Running in 654af68f5d80
Removing intermediate container 654af68f5d80
 ---> b76434a64455
Successfully built b76434a64455
Successfully tagged deletefb:latest
usage: deletefb.py [-h] [-M {wall,unlike_pages}] -E EMAIL [-P PASSWORD] -U
                   PROFILE_URL [-F TWO_FACTOR_TOKEN] [-H] [--no-archive]
                   [-Y YEAR]
deletefb.py: error: the following arguments are required: -E/--email, -U/--profile-url

from deletefb.

metaver5o avatar metaver5o commented on August 17, 2024

@weskerfoot it worked!
i will open a PR, we can improve from now on
but chrome is opening, and deleting the posts !!

from deletefb.

weskerfoot avatar weskerfoot commented on August 17, 2024

@mmatoscom That's awesome, I'll test it out when I get a chance

from deletefb.

metaver5o avatar metaver5o commented on August 17, 2024

maybe this should be closed?

from deletefb.

weskerfoot avatar weskerfoot commented on August 17, 2024

from deletefb.

metaver5o avatar metaver5o commented on August 17, 2024

Its still open, just you and who opened this issue are able to close it

from deletefb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.