N-doped CNTs/C3N4 nanocomposite is rationally designed as an electrode material for dual-capture of biocatalysts in glucose/O2 biofuel cells and is capable of harvesting electrical power from soft drinks.